mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-11 06:09:42 -05:00
* [maixcam] Fix compilation errors
This commit is contained in:
@@ -3,9 +3,6 @@
|
||||
#include "maix_nn_melotts.hpp"
|
||||
#include "main.h"
|
||||
#include "maix_image.hpp"
|
||||
#ifndef PLATFORM_MAIXCAM2
|
||||
#error "This demo only support maixcam2"
|
||||
#else
|
||||
using namespace maix;
|
||||
int _main(int argc, char *argv[])
|
||||
{
|
||||
@@ -70,5 +67,4 @@ int main(int argc, char *argv[])
|
||||
// if we don't catch exception, when program throw exception, the objects will not be destructed.
|
||||
// So we catch exception here to let resources be released(call objects' destructor) before exit.
|
||||
CATCH_EXCEPTION_RUN_RETURN(_main, -1, argc, argv);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -2,9 +2,6 @@
|
||||
#include "maix_basic.hpp"
|
||||
#include "maix_nn_whisper.hpp"
|
||||
#include "main.h"
|
||||
#ifndef PLATFORM_MAIXCAM2
|
||||
#error "This demo only support maixcam2"
|
||||
#else
|
||||
using namespace maix;
|
||||
|
||||
int _main(int argc, char *argv[])
|
||||
@@ -66,5 +63,4 @@ int main(int argc, char *argv[])
|
||||
// if we don't catch exception, when program throw exception, the objects will not be destructed.
|
||||
// So we catch exception here to let resources be released(call objects' destructor) before exit.
|
||||
CATCH_EXCEPTION_RUN_RETURN(_main, -1, argc, argv);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user