#define _NATIVEVM_H
#include "config.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "vm/types.h"
#include "vm/global.h"
void nativevm_init(void);
#if defined(ENABLE_JAVASE)
-# if defined(WITH_CLASSPATH_GNU)
+# if defined(WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH)
void _Jv_gnu_classpath_VMStackWalker_init();
void _Jv_gnu_classpath_VMSystemProperties_init();
void _Jv_sun_reflect_ConstantPool_init();
#endif
-# elif defined(WITH_CLASSPATH_SUN)
+# elif defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
void _Jv_sun_misc_Unsafe_init();
# error unknown Java configuration
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _NATIVEVM_H */
+
/*
* These are local overrides for various environment variables in Emacs.
* Please do not remove this and leave it at the end of the file, where