Changeset - r27989:4cf715122cf8
[Not reviewed]
master
0 2 0
Loïc Guilloux - 7 months ago 2023-10-09 17:35:15
glx22@users.noreply.github.com
Cleanup: [MacOS] Remove unneeded WITH_SDL checks (#11360)
2 files changed with 1 insertions and 19 deletions:
0 comments (0 inline, 0 general)
src/os/macosx/macos.mm
Show inline comments
 
@@ -93,21 +93,7 @@ void GetMacOSVersion(int *return_major, 
 
#endif
 
}
 

	
 
#ifdef WITH_SDL
 

	
 
/**
 
 * Show the system dialogue message (SDL on MacOSX).
 
 *
 
 * @param title Window title.
 
 * @param message Message text.
 
 * @param buttonLabel Button text.
 
 */
 
void ShowMacDialog(const char *title, const char *message, const char *buttonLabel)
 
{
 
	NSRunAlertPanel([ NSString stringWithUTF8String:title ], [ NSString stringWithUTF8String:message ], [ NSString stringWithUTF8String:buttonLabel ], nil, nil);
 
}
 

	
 
#elif defined WITH_COCOA
 
#ifdef WITH_COCOA
 

	
 
extern void CocoaDialog(const char *title, const char *message, const char *buttonLabel);
 

	
src/os/macosx/osx_main.cpp
Show inline comments
 
@@ -16,10 +16,6 @@
 
#include <time.h>
 
#include <signal.h>
 

	
 
#if defined(WITH_SDL)
 
/* the mac implementation needs this file included in the same file as main() */
 
#	include <SDL.h>
 
#endif
 
#include "macos.h"
 

	
 
#include "../../safeguards.h"
0 comments (0 inline, 0 general)