1
0
Fork 0

jni: remove c++ stuff (fixes build with c++ compiler)

This commit is contained in:
hpi1 2015-02-18 11:52:53 +02:00
parent 6b95e7b693
commit b9191377eb
1 changed files with 5 additions and 5 deletions

View File

@ -61,7 +61,7 @@ typedef double jdouble;
typedef jint jsize;
#ifdef __cplusplus
#if 0 /*ifdef __cplusplus*/
class _jobject {};
class _jclass : public _jobject {};
@ -184,7 +184,7 @@ struct JNINativeInterface_;
struct JNIEnv_;
#ifdef __cplusplus
#if 0 /*ifdef __cplusplus*/
typedef JNIEnv_ JNIEnv;
#else
typedef const struct JNINativeInterface_ *JNIEnv;
@ -198,7 +198,7 @@ struct JNIInvokeInterface_;
struct JavaVM_;
#ifdef __cplusplus
#if 0 /*ifdef __cplusplus*/
typedef JavaVM_ JavaVM;
#else
typedef const struct JNIInvokeInterface_ *JavaVM;
@ -769,7 +769,7 @@ struct JNINativeInterface_ {
struct JNIEnv_ {
const struct JNINativeInterface_ *functions;
#ifdef __cplusplus
#if 0/*ifdef __cplusplus*/
jint GetVersion() {
return functions->GetVersion(this);
@ -1918,7 +1918,7 @@ struct JNIInvokeInterface_ {
struct JavaVM_ {
const struct JNIInvokeInterface_ *functions;
#ifdef __cplusplus
#if 0/*ifdef __cplusplus*/
jint DestroyJavaVM() {
return functions->DestroyJavaVM(this);