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/MGPassesWrapperImpl.c

    r16583 r26662  
    2020
    2121#include <jni.h>
     22
     23#ifdef __MINGW32__
     24
     25/* Cross compiling for Windows
     26 Want the type definitions in *win32* version of jni_md.h but
     27 this then leads to C-mangled style functions which we *don't*
     28 want.  The following achieves this */
     29
     30#undef JNIEXPORT
     31#undef JNIIMPORT
     32#undef JNICALL
     33
     34#define JNIEXPORT
     35#define JNIIMPORT
     36#define JNICALL
     37#endif
     38
     39
    2240#include <assert.h>
    2341#include "sysfuncs.h"
Note: See TracChangeset for help on using the changeset viewer.