- Timestamp:
- 2013-01-10T15:56:18+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/indexers/mg/jni/MGRetrieveWrapperImpl.c
r25244 r26662 19 19 20 20 21 #include <jni.h> 22 #ifdef __MINGW32__ 23 24 /* Cross compiling for Windows 25 Want the type definitions in *win32* version of jni_md.h but 26 this then leads to C-mangled style functions which we *don't* 27 want. The following achieves this */ 28 29 #undef JNIEXPORT 30 #undef JNIIMPORT 31 #undef JNICALL 32 33 #define JNIEXPORT 34 #define JNIIMPORT 35 #define JNICALL 36 #endif 37 21 38 #include "MGWrapperImpl.h" 22 #include <jni.h> 39 23 40 #include "org_greenstone_mg_MGRetrieveWrapper.h" 24 41 … … 213 230 jstring j_index) 214 231 { 215 MGWrapperData* data = (MGWrapperData*) (*j_env)->GetLongField(j_env, j_obj, FID_mg_data);232 MGWrapperData* data = (MGWrapperData*)(intptr_t) (*j_env)->GetLongField(j_env, j_obj, FID_mg_data); 216 233 217 234 /* Get the index name as a C string */ … … 243 260 jlong j_docnum) 244 261 { 245 MGWrapperData* data = (MGWrapperData*) (*j_env)->GetLongField(j_env, j_obj, FID_mg_data);262 MGWrapperData* data = (MGWrapperData*)(intptr_t) (*j_env)->GetLongField(j_env, j_obj, FID_mg_data); 246 263 247 264 char* index_path;
Note:
See TracChangeset
for help on using the changeset viewer.