mirror of https://github.com/OpenTTD/OpenTTD.git
Cleanup: [MacOS] Remove unneeded WITH_SDL checks (#11360)
This commit is contained in:
parent
ac9db3f5aa
commit
0458c15060
|
@ -93,21 +93,7 @@ void GetMacOSVersion(int *return_major, int *return_minor, int *return_bugfix)
|
|||
#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);
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue