(svn r2330) - Fix: link error when compiling as dedicated. Add sdl.c to always compile in makefile as it is always protected by WITH_SDL and add a stub for ToggleFullScreen()
authorDarkvater
Mon, 16 May 2005 12:15:34 +0000
changeset 1825 431b1a9d9a98
parent 1824 2f70ec488dda
child 1826 d123cb6b11dc
(svn r2330) - Fix: link error when compiling as dedicated. Add sdl.c to always compile in makefile as it is always protected by WITH_SDL and add a stub for ToggleFullScreen()
Makefile
sdl.c
--- a/Makefile	Mon May 16 08:41:42 2005 +0000
+++ b/Makefile	Mon May 16 12:15:34 2005 +0000
@@ -687,13 +687,10 @@
 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
--- a/sdl.c	Mon May 16 08:41:42 2005 +0000
+++ b/sdl.c	Mon May 16 12:15:34 2005 +0000
@@ -706,4 +706,9 @@
 }
 #endif
 
-#endif // WITH_SDL
+#else
+
+/* Stub for dedicated server */
+void ToggleFullScreen(bool full_screen) {}
+
+#endif /* WITH_SDL */