Ignore:
Timestamp:
2013-01-10T15:56:18+13:00 (11 years ago)
Author:
davidb
Message:

Support for cross-compilation added. This particular set of changes focus on flags that assist cross-compilation with JNI. Comparable set of changes to the mgpp ones. Note the additional type-casting (intptr_t)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mg/jni/MGWrapperImpl.c

    r25244 r26662  
    1818 */
    1919
     20#include <jni.h>
     21
     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
    2037
    2138#include "MGWrapperImpl.h"
    22 #include <jni.h>
    2339#include "org_greenstone_mg_MGWrapper.h"
     40
    2441
    2542#include "backend.h"
Note: See TracChangeset for help on using the changeset viewer.