8043646: libosxapp.dylib fails to build on Mac OS 10.9 with clang

Reviewed-by: anthony, serb
This commit is contained in:
Petr Pchelko 2014-05-22 15:46:50 +04:00
parent ae470d1970
commit 1d4a340a2b

View File

@ -36,7 +36,7 @@ static JNIEnv *appKitEnv = NULL;
static jobject appkitThreadGroup = NULL; static jobject appkitThreadGroup = NULL;
static BOOL awtEmbedded = NO; static BOOL awtEmbedded = NO;
inline void attachCurrentThread(void** env) { static inline void attachCurrentThread(void** env) {
if ([NSThread isMainThread]) { if ([NSThread isMainThread]) {
JavaVMAttachArgs args; JavaVMAttachArgs args;
args.version = JNI_VERSION_1_4; args.version = JNI_VERSION_1_4;