aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/windows/native/sun/windows/awt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/native/sun/windows/awt.h b/src/windows/native/sun/windows/awt.h
index 1b8bd5237d..ba6486f9c0 100644
--- a/src/windows/native/sun/windows/awt.h
+++ b/src/windows/native/sun/windows/awt.h
@@ -198,7 +198,7 @@ typedef AwtObject* PDATA;
#define LO_INT(l) ((int)(short)(l))
#define HI_INT(l) ((int)(short)(((DWORD)(l) >> 16) & 0xFFFF))
-extern JavaVM *jvm;
+extern "C" JavaVM *jvm;
// Platform encoding is Unicode (UTF-16), re-define JNU_ functions
// to proper JNI functions.