* [maixcam] Fix compilation errors

This commit is contained in:
lxowalle
2025-12-05 16:08:38 +08:00
parent 798e045f24
commit 3668c1bcfd
2 changed files with 2 additions and 10 deletions

View File

@@ -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
}

View File

@@ -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
}