summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--sdl.c7
2 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 214fdee53..6200c2b6c 100644
--- a/Makefile
+++ b/Makefile
@@ -687,13 +687,10 @@ C_SOURCES += water_cmd.c
C_SOURCES += waypoint.c
C_SOURCES += widget.c
C_SOURCES += window.c
+C_SOURCES += sdl.c
CXX_SOURCES =
-ifdef WITH_SDL
-C_SOURCES += sdl.c
-endif
-
ifdef WIN32
C_SOURCES += win32.c w32dm.c
else
diff --git a/sdl.c b/sdl.c
index f6f5fe926..c81fb66d6 100644
--- a/sdl.c
+++ b/sdl.c
@@ -706,4 +706,9 @@ static void DbgRedraw()
}
#endif
-#endif // WITH_SDL
+#else
+
+/* Stub for dedicated server */
+void ToggleFullScreen(bool full_screen) {}
+
+#endif /* WITH_SDL */