jdk/src/macosx/native/sun/font/AWTStrike.m
changeset 13678 5c8001201f98
parent 12047 320a714614e9
child 15973 ea0278a3c432
--- a/jdk/src/macosx/native/sun/font/AWTStrike.m	Wed Jul 05 18:20:34 2017 +0200
+++ b/jdk/src/macosx/native/sun/font/AWTStrike.m	Tue Sep 11 13:40:59 2012 -0700
@@ -33,6 +33,11 @@
 #import "CoreTextSupport.h"
 //#import "jni_util.h"
 
+/* Use THIS_FILE when it is available. */
+#ifndef THIS_FILE
+    #define THIS_FILE __FILE__
+#endif
+
 @implementation AWTStrike
 
 static CGAffineTransform sInverseTX = { 1, 0, 0, -1, 0, 0 };
@@ -102,7 +107,7 @@
 #define AWT_FONT_CLEANUP_FINISH                                         \
     if (_fontThrowJavaException == YES) {                               \
         char s[512];                                                    \
-        sprintf(s, "%s-%s:%d", __FILE__, __FUNCTION__, __LINE__);       \
+        sprintf(s, "%s-%s:%d", THIS_FILE, __FUNCTION__, __LINE__);       \
         [JNFException raise:env as:kRuntimeException reason:s];         \
     }