Changeset 183
- Timestamp:
- Dec 1, 2010, 2:53:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/src/windows/native/sun/windows/UnicowsLoader.h
r180 r183 76 76 // Now the platform encoding is Unicode (UTF-16), re-define JNU_ functions 77 77 // to proper JNI functions. 78 #ifdef __WIN32OS2__ 79 #define JNU_NewStringPlatform(env, x) env->NewString(reinterpret_cast<jchar*>(x), static_cast<jsize>(_tcslen(reinterpret_cast<LPTSTR>(x)))) 80 #define JNU_GetStringPlatformChars(env, x, y) (LPWSTR)env->GetStringChars(x, y) 81 #define JNU_ReleaseStringPlatformChars(env, x, y) env->ReleaseStringChars(x, reinterpret_cast<jchar*>(y)) 82 #else 78 83 #define JNU_NewStringPlatform(env, x) env->NewString(x, static_cast<jsize>(_tcslen(x))) 79 84 #define JNU_GetStringPlatformChars(env, x, y) (LPWSTR)env->GetStringChars(x, y) 80 85 #define JNU_ReleaseStringPlatformChars(env, x, y) env->ReleaseStringChars(x, y) 86 #endif 81 87 82 88 // The following Windows W-APIs are not supported by the MSLU. … … 156 162 // #define _wsomefunc NotSupportedOnWin9X 157 163 164 #ifndef __WIN32OS2__ 158 165 #define _waccess NotSupportedOnWin9X 159 166 #define _wchmod NotSupportedOnWin9X … … 194 201 #define _wspawnvp NotSupportedOnWin9X 195 202 #define _wspawnvpe NotSupportedOnWin9X 196 203 #endif // __WIN32OS2__ 197 204 198 205 #endif // UNICOWSLOADER_H
Note:
See TracChangeset
for help on using the changeset viewer.