(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()

This commit is contained in:
Darkvater 2005-05-16 12:15:34 +00:00
parent b18e4d1a8d
commit 3bd76dad5b
2 changed files with 7 additions and 5 deletions

View File

@ -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

7
sdl.c
View File

@ -706,4 +706,9 @@ static void DbgRedraw()
}
#endif
#endif // WITH_SDL
#else
/* Stub for dedicated server */
void ToggleFullScreen(bool full_screen) {}
#endif /* WITH_SDL */