--- old/src/java.desktop/windows/native/libawt/windows/awt.h 2019-05-16 19:16:15.000000000 +0300 +++ new/src/java.desktop/windows/native/libawt/windows/awt.h 2019-05-16 19:16:15.000000000 +0300 @@ -191,7 +191,7 @@ #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.