Print this page
Added gradle and cmake project

Split Close
Expand all
Collapse all
          --- old/src/java.desktop/windows/native/libawt/windows/awt.h
          +++ new/src/java.desktop/windows/native/libawt/windows/awt.h
↓ open down ↓ 183 lines elided ↑ open up ↑
 184  184                        (maj) == LOBYTE(LOWORD(::GetVersion())) && \
 185  185                        (min) <= HIBYTE(LOWORD(::GetVersion())))
 186  186  
 187  187  /*
 188  188   * macros to crack a LPARAM into two ints -- used for signed coordinates,
 189  189   * such as with mouse messages.
 190  190   */
 191  191  #define LO_INT(l)           ((int)(short)(l))
 192  192  #define HI_INT(l)           ((int)(short)(((DWORD)(l) >> 16) & 0xFFFF))
 193  193  
 194      -extern JavaVM *jvm;
      194 +extern "C" JavaVM *jvm;
 195  195  
 196  196  // Platform encoding is Unicode (UTF-16), re-define JNU_ functions
 197  197  // to proper JNI functions.
 198  198  #define JNU_NewStringPlatform(env, x) env->NewString(reinterpret_cast<const jchar*>(x), static_cast<jsize>(_tcslen(x)))
 199  199  #define JNU_GetStringPlatformChars(env, x, y) reinterpret_cast<LPCWSTR>(env->GetStringChars(x, y))
 200  200  #define JNU_ReleaseStringPlatformChars(env, x, y) env->ReleaseStringChars(x, reinterpret_cast<const jchar*>(y))
 201  201  
 202  202  /*
 203  203   * Itanium symbols needed for 64-bit compilation.
 204  204   * These are defined in winuser.h in the August 2001 MSDN update.
↓ open down ↓ 184 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX