diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-10 23:44:05 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-10 23:44:05 +0000 |
| commit | 36cf37bea77749a21754b4de93aa6a3f317605a6 (patch) | |
| tree | 562b3aef02d2a90b35345c3a26ea5e694ef08263 /libjava/include | |
| parent | a40bef3cf9362d8d53203ad05a9b686005f34437 (diff) | |
| download | ppe42-gcc-36cf37bea77749a21754b4de93aa6a3f317605a6.tar.gz ppe42-gcc-36cf37bea77749a21754b4de93aa6a3f317605a6.zip | |
* include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
(jboolean): Declare as an attributed int, not a bool.
(_Jv_func): Declare differently for C.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31907 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
| -rw-r--r-- | libjava/include/jni.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libjava/include/jni.h b/libjava/include/jni.h index 35477797f40..789cdeef56c 100644 --- a/libjava/include/jni.h +++ b/libjava/include/jni.h @@ -34,7 +34,7 @@ typedef int jbyte __attribute__((__mode__(__QI__))); typedef int jshort __attribute__((__mode__(__HI__))); typedef int jint __attribute__((__mode__(__SI__))); typedef int jlong __attribute__((__mode__(__DI__))); -typedef bool jboolean __attribute__((__mode__(__QI__))); +typedef int jboolean __attribute__((__mode__(__QI__))); typedef unsigned short jchar __attribute__((__mode__(__HI__))); typedef float jfloat; typedef double jdouble; @@ -62,8 +62,8 @@ typedef void *jmethodID; typedef const struct JNINativeInterface *JNIEnv; typedef const struct JNIInvokeInterface *JavaVM; -#define JNI_TRUE 1 -#define JNI_TRUE 0 +#define JNI_TRUE 1 +#define JNI_FALSE 0 #endif /* __cplusplus */ @@ -117,7 +117,11 @@ typedef union jvalue jobject l; } jvalue; -typedef void * (*_Jv_func)(...); +#ifdef __cplusplus +typedef void * (*_Jv_func) (...); +#else +typedef void * (*_Jv_func) (); +#endif /* This structure is used when registering native methods. */ typedef struct |

