Commit b9191377 authored by Petri Hintukainen's avatar Petri Hintukainen

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

parent 6b95e7b6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment