jdk/src/macosx/native/sun/awt/CTextPipe.m
changeset 13678 5c8001201f98
parent 12047 320a714614e9
child 13768 4bf20f0aaac4
--- a/jdk/src/macosx/native/sun/awt/CTextPipe.m	Wed Jul 05 18:20:34 2017 +0200
+++ b/jdk/src/macosx/native/sun/awt/CTextPipe.m	Tue Sep 11 13:40:59 2012 -0700
@@ -36,6 +36,10 @@
 #import "QuartzSurfaceData.h"
 #include "AWTStrike.h"
 
+/* Use THIS_FILE when it is available. */
+#ifndef THIS_FILE
+    #define THIS_FILE __FILE__
+#endif
 
 static const CGAffineTransform sInverseTX = { 1, 0, 0, -1, 0, 0 };
 
@@ -488,7 +492,7 @@
         if (glyphs == NULL || advances == NULL)
         {
             (*env)->DeleteLocalRef(env, glyphsArray);
-            [NSException raise:NSMallocException format:@"%s-%s:%d", __FILE__, __FUNCTION__, __LINE__];
+            [NSException raise:NSMallocException format:@"%s-%s:%d", THIS_FILE, __FUNCTION__, __LINE__];
             return;
         }