Fix build of Java API for Windows
This commit is contained in:
@@ -462,8 +462,10 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1getTextSize
|
||||
|
||||
env->SetDoubleArrayRegion(result, 0, 2, fill);
|
||||
|
||||
if (baseLine != NULL)
|
||||
env->SetIntArrayRegion(baseLine, 0, 1, pbaseLine);
|
||||
if (baseLine != NULL) {
|
||||
jint jbaseLine = (jint)(*pbaseLine);
|
||||
env->SetIntArrayRegion(baseLine, 0, 1, &jbaseLine);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
@@ -872,13 +874,17 @@ public class %(jc)s {
|
||||
#include "converters.h"
|
||||
|
||||
#if defined DEBUG && defined ANDROID
|
||||
#include <android/log.h>
|
||||
#define MODULE_LOG_TAG "OpenCV.%(m)s"
|
||||
#define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, MODULE_LOG_TAG, __VA_ARGS__))
|
||||
# include <android/log.h>
|
||||
# define MODULE_LOG_TAG "OpenCV.%(m)s"
|
||||
# define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, MODULE_LOG_TAG, __VA_ARGS__))
|
||||
#else //DEBUG
|
||||
#define LOGD(...)
|
||||
# define LOGD(...)
|
||||
#endif //DEBUG
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(disable:4800 4244)
|
||||
#endif
|
||||
|
||||
#include "opencv2/%(m)s/%(m)s.hpp"
|
||||
|
||||
using namespace cv;
|
||||
|
Reference in New Issue
Block a user