*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Thu, 27 Apr 2017 14:14:45 +0200
changeset 21731 81d141fee490
parent 21730 772021e0c4bd
child 21732 0fd83e26247f
*** empty log message ***
OSXOperatingSystem.st
--- a/OSXOperatingSystem.st	Wed Apr 26 16:52:38 2017 +0200
+++ b/OSXOperatingSystem.st	Thu Apr 27 14:14:45 2017 +0200
@@ -23,8 +23,6 @@
 !OSXOperatingSystem primitiveDefinitions!
 %{
 
-#undef NO_COCOA
-
 #ifndef __OSX__
 # define NO_QUARTZ
 # define NO_COCOA
@@ -419,7 +417,7 @@
     Class AppDelClass = NULL;
     id NSApp = NULL;
 
-#if 0 /* not needed */
+# if 0 /* not needed */
     Class poolClass = objc_getClass("NSAutoreleasePool");
     if (poolClass == NULL) {
 	fprintf(stderr, "OSX: Unable to get NSAutoreleasePool\n");
@@ -431,13 +429,13 @@
 	RETURN(false);
     }
     objc_msgSend(pool, sel_registerName("init"));
-#endif
+# endif
 
-#if 0 /* not needed */
+# if 0 /* not needed */
     AppDelClass = objc_allocateClassPair((Class)objc_getClass("NSObject"), "AppDelegate", 0);
     class_addMethod(AppDelClass, sel_getUid("applicationDidFinishLaunching:"), (IMP)AppDel_didFinishLaunching, "i@:@");
     objc_registerClassPair(AppDelClass);
-#endif
+# endif
 
     NSApp = objc_msgSend((id)objc_getClass("NSApplication"), sel_getUid("sharedApplication"));
     if (NSApp == NULL) {
@@ -449,15 +447,15 @@
     id req = objc_msgSend(NSApp,sel_getUid("requestUserAttention:"),0);
     objc_msgSend(NSApp,sel_getUid("cancelUserAttentionRequest:"),req);
 
-#if 0 /* not needed */
+# if 0 /* not needed */
     id appDelInst = objc_msgSend((id)objc_getClass("AppDelegate"), sel_getUid("alloc"));
     objc_msgSend(appDelInst, sel_getUid("init"));
     objc_msgSend(NSApp, sel_getUid("setDelegate:"), appDelInst);
-#endif
+# endif
 
-#if 0 /* not needed */
+# if 0 /* not needed */
     objc_msgSend(pool, sel_registerName("release"));
-#endif
+# endif
     RETURN(true);
 #endif // NO_COCOA
 %}.