Changeset 263 for trunk/openjdk/hotspot/src/os
- Timestamp:
- Feb 21, 2011, 12:02:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/hotspot/src/os/windows/vm/hpi_windows.cpp
r2 r263 26 26 # include "incls/_hpi_windows.cpp.incl" 27 27 28 #ifdef __WIN32OS2__ 29 # define HPI_LIBNAME "jhpi" 30 #else 31 # define HPI_LIBNAME "hpi" 32 #endif 33 28 34 typedef jint (JNICALL *init_t)(GetInterfaceFunc *, void *); 29 35 … … 40 46 41 47 #ifdef PRODUCT 42 const char *hpi_lib = "\\ hpi.dll";48 const char *hpi_lib = "\\" HPI_LIBNAME ".dll"; 43 49 #else 44 50 char *ptr = strrchr(lib_name, '\\'); 45 51 // On Win98 GetModuleFileName() returns the path in the upper case. 46 52 assert(_strnicmp(ptr, "\\jvm",4) == 0, "invalid library name"); 47 const char *hpi_lib = (_strnicmp(ptr, "\\jvm_g",6) == 0) ? "\\hpi_g.dll" : "\\hpi.dll"; 53 const char *hpi_lib = (_strnicmp(ptr, "\\jvm_g",6) == 0) ? 54 "\\" HPI_LIBNAME "_g.dll" : "\\" HPI_LIBNAME ".dll"; 48 55 #endif 49 56
Note:
See TracChangeset
for help on using the changeset viewer.