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/MGPPSearchWrapperImpl.cpp

    r25246 r26660  
    3131
    3232#include <jni.h>
     33
     34#ifdef __MINGW32__
     35
     36/* Cross compiling for Windows
     37   Want the type definitions in *win32* version of jni_md.h but
     38   this then leads to C-mangled style functions which we *don't*
     39   want.  The following achieves this */
     40
     41#undef JNIEXPORT
     42#undef JNIIMPORT
     43#undef JNICALL
     44
     45#define JNIEXPORT
     46#define JNIIMPORT
     47#define JNICALL
     48#endif
     49
    3350#include "org_greenstone_mgpp_MGPPSearchWrapper.h"
    3451#include "MGPPSearchWrapperImpl.h"
Note: See TracChangeset for help on using the changeset viewer.