GNUstep compatibility: comment out some API calls that GNUstep
[sgt/puzzles] / osx.m
diff --git a/osx.m b/osx.m
index d9b1cf5..a0b7059 100644 (file)
--- a/osx.m
+++ b/osx.m
@@ -712,7 +712,7 @@ struct frontend {
     [alert addButtonWithTitle:@"Bah"];
     [alert setInformativeText:[NSString stringWithUTF8String:message]];
     [alert beginSheetModalForWindow:self modalDelegate:nil
-     didEndSelector:nil contextInfo:nil];
+     didEndSelector:NULL contextInfo:nil];
 }
 
 - (void)newGame:(id)sender
@@ -900,10 +900,14 @@ struct frontend {
        [status setFrame:frame];
     }
 
+#ifndef GNUSTEP
     NSDisableScreenUpdates();
+#endif
     [self setContentSize:size];
     [self setupContentView];
+#ifndef GNUSTEP
     NSEnableScreenUpdates();
+#endif
 }
 
 - (void)presetGame:(id)sender
@@ -1179,7 +1183,7 @@ struct frontend {
        [[sheet contentView] addSubview:cfg_controls[k]];
 
     [NSApp beginSheet:sheet modalForWindow:self
-     modalDelegate:nil didEndSelector:nil contextInfo:nil];
+     modalDelegate:nil didEndSelector:NULL contextInfo:nil];
 }
 
 - (void)specificGame:(id)sender
@@ -1234,7 +1238,7 @@ struct frontend {
            [alert addButtonWithTitle:@"Bah"];
            [alert setInformativeText:[NSString stringWithUTF8String:error]];
            [alert beginSheetModalForWindow:self modalDelegate:nil
-            didEndSelector:nil contextInfo:nil];
+            didEndSelector:NULL contextInfo:nil];
        } else {
            midend_new_game(me);
            [self resizeForNewGameParams];