Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Feb 14, 2016
1 parent 92af0b3 commit 20a10ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion make_gcw0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To create a debug build, run `cmake -D CMAKE_BUILD_TYPE=Debug .` instead

# For more info: http://github.com/cxong/cdogs-sdl/wiki/Developer-Getting-Started:-GCW-Zero
rm CMakeCache.txt
rm CMakeCache.txt -f
rm gcw0build -rf
mkdir gcw0build
cd gcw0build
Expand Down
4 changes: 4 additions & 0 deletions src/mainmenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ static void CheckLANServers(menu_t *menu, void *data)
}

static menu_t *MenuCreateOptionsGraphics(const char *name, MenuSystem *ms);
#if !defined(__ANDROID__) && !defined(__GCWZERO__)
static menu_t *MenuCreateOptionsControls(const char *name, MenuSystem *ms);
#endif

static menu_t *MenuCreateOptions(const char *name, MenuSystem *ms)
{
Expand Down Expand Up @@ -451,6 +453,7 @@ menu_t *MenuCreateOptionsGraphics(const char *name, MenuSystem *ms)

menu_t *MenuCreateKeys(const char *name, MenuSystem *ms);

#if !defined(__ANDROID__) && !defined(__GCWZERO__)
menu_t *MenuCreateOptionsControls(const char *name, MenuSystem *ms)
{
menu_t *menu = MenuCreateNormal(
Expand All @@ -464,6 +467,7 @@ menu_t *MenuCreateOptionsControls(const char *name, MenuSystem *ms)
MenuSetPostInputFunc(menu, PostInputConfigApply, ms);
return menu;
}
#endif

menu_t *MenuCreateQuit(const char *name)
{
Expand Down
2 changes: 2 additions & 0 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ add_executable(config_test
../cdogs/config_old.h
../cdogs/json_utils.c
../cdogs/json_utils.h
../cdogs/log.c
../cdogs/log.h
../cdogs/utils.c
../cdogs/utils.h)
target_link_libraries(config_test
Expand Down

0 comments on commit 20a10ea

Please sign in to comment.