Home | History | Annotate | Download | only in cpp
      1 #ifndef __JAVA_COMMON_H__
      2 #define __JAVA_COMMON_H__
      3 
      4 #if !defined(__ppc__)
      5 // to suppress warning from jni.h on OS X
      6 # define TARGET_RT_MAC_CFM 0
      7 #endif
      8 #include <jni.h>
      9 
     10 #ifdef __ANDROID__
     11 #  include <android/log.h>
     12 #  define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__))
     13 #  ifdef DEBUG
     14 #    define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__))
     15 #  else
     16 #    define LOGD(...)
     17 #  endif
     18 #else
     19 #  define LOGE(...)
     20 #  define LOGD(...)
     21 #endif
     22 
     23 #include "opencv2/core/utility.hpp"
     24 
     25 #include "converters.h"
     26 
     27 #ifdef _MSC_VER
     28 #  pragma warning(disable:4800 4244)
     29 #endif
     30 
     31 #endif //__JAVA_COMMON_H__
     32