[Aitt] check feature definition
authorJaeyun <jy1210.jung@samsung.com>
Wed, 5 Oct 2022 05:38:11 +0000 (14:38 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 5 Oct 2022 06:05:34 +0000 (15:05 +0900)
Code clean, report error when building aitt impl without feature definition.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
src/libnnstreamer-edge/nnstreamer-edge-aitt.c

index 410f6bb81ba6558a9c1c985a4aafe2be230a3081..9e7cebddb903511c39c41cae97e1223fd41a6ef1 100644 (file)
@@ -10,6 +10,9 @@
  * @bug    No known bugs except for NYI items
  */
 
+#if !defined(ENABLE_AITT)
+#error "This file can be built with AITT library."
+#endif
 
 #include <stdbool.h>
 #include <aitt_c.h>