Ignore:
Timestamp:
2013-01-10T15:51:17+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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mgpp/jni/MGPPPassesWrapperImpl.cpp

    r16583 r26660  
    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
    2239#include <assert.h>
    2340#include "sysfuncs.h"
Note: See TracChangeset for help on using the changeset viewer.