summaryrefslogtreecommitdiff
path: root/src/main/windows/SDL_windows_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/windows/SDL_windows_main.c')
-rw-r--r--src/main/windows/SDL_windows_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/windows/SDL_windows_main.c b/src/main/windows/SDL_windows_main.c
index ef50d5d2..4d60e2d4 100644
--- a/src/main/windows/SDL_windows_main.c
+++ b/src/main/windows/SDL_windows_main.c
@@ -3,6 +3,9 @@
The WinMain function -- calls your program's main() function
*/
+#include "SDL_config.h"
+
+#ifdef __WIN32__
#include <stdio.h>
#include <stdlib.h>
@@ -202,4 +205,6 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPTSTR szCmdLine, int sw)
return 0;
}
+#endif /* __WIN32__ */
+
/* vi: set ts=4 sw=4 expandtab: */