diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-10 17:38:08 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-10 17:38:08 +0000 |
| commit | 65daa6847d0f4f88870e67912ea645871ce11818 (patch) | |
| tree | c724227df81b3c05f2ca9db31c0ec88df76adc36 /libjava/include/jni.h | |
| parent | b0b255613998f8f69aff201f1a5d58f079cd59fa (diff) | |
| download | ppe42-gcc-65daa6847d0f4f88870e67912ea645871ce11818.tar.gz ppe42-gcc-65daa6847d0f4f88870e67912ea645871ce11818.zip | |
2002-11-08 Ranjit Mathew <rmathew@hotmail.com>
* include/jni.h (JNIIMPORT, JNIEXPORT, JNICALL): Linker defines
for Win32. JNICALL has been defined to __stdcall to be compatible
with Sun's JDKs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58985 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include/jni.h')
| -rw-r--r-- | libjava/include/jni.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libjava/include/jni.h b/libjava/include/jni.h index b5ce334b895..07a21e635fb 100644 --- a/libjava/include/jni.h +++ b/libjava/include/jni.h @@ -173,12 +173,21 @@ typedef void *jmethodID; #define JNI_EDETACHED -2 #define JNI_EVERSION -3 -/* Linkage and calling conventions. This will need updating when we - support Windows DLLs. */ +/* Linkage and calling conventions. */ +#if defined(_WIN32) || defined (__WIN32__) || defined (WIN32) + +#define JNIIMPORT __declspec(dllimport) +#define JNIEXPORT __declspec(dllexport) +#define JNICALL __stdcall + +#else + #define JNIIMPORT #define JNIEXPORT #define JNICALL +#endif /* !( _WIN32 || __WIN32__ || WIN32) */ + #ifdef __cplusplus extern "C" { |

