fix tools that broke due to lang change
authorTaylor Richards <taylor@icculus.org>
Tue, 16 Jan 2018 14:28:48 +0000 (09:28 -0500)
committerTaylor Richards <taylor@icculus.org>
Sat, 17 Mar 2018 15:31:15 +0000 (11:31 -0400)
src/ac/ac_stubs.cpp
src/fonttool/fontstubs.cpp
src/nebedit/nebstubs.cpp
src/pofview/pofviewstubs.cpp

index 03ce449..cbeefb6 100644 (file)
@@ -92,13 +92,13 @@ int Pofview_running = 0;
 int Fonttool_running = 0;
 char *Game_CDROM_dir;
 void game_stop_looped_sounds() {}
-void game_enter_state(int, int){}
+extern "C" void game_enter_state(int, int){}
 void game_leave_state(int, int){}
 void game_do_state(int){}
 int set_cdrom_path(int){return 0;}
 int find_freespace_cd(char*){return 0;}
 void game_flush(){}
-void game_process_event(int, int);
+extern "C" void game_process_event(int, int);
 int Game_skill_level;
 float flFrametime;
 int game_check_key(){return 0;}
@@ -115,7 +115,7 @@ void game_process_event(int, int){}
 void game_increase_skill_level(){}
 int Warpout_forced;
 float Warpout_time;
-int game_start_mission(){return 0;}
+extern "C" int game_start_mission(){return 0;}
 void game_level_close(){}
 void game_whack_apply(float, float){}
 void game_flash(float, float, float){}
index 27ab416..d1e8a93 100644 (file)
 #include "vecmat.h"
 
 int game_cd_changed(){return 0;}
-void game_enter_state(int, int){}
+extern "C" void game_enter_state(int, int){}
 void game_leave_state(int, int){}
 void game_do_state(int){}
-void game_process_event(int, int){}
+extern "C" void game_process_event(int, int){}
 char *Game_CDROM_dir;
 void game_stop_looped_sounds(){}
 int Fred_running = 0;
@@ -78,7 +78,7 @@ int Framerate_delay;
 char *Game_current_mission_filename;
 int Warpout_forced;
 float Warpout_time;
-int game_start_mission(void){return 0;}
+extern "C" int game_start_mission(void){return 0;}
 void game_level_close(){}
 void game_flash(float, float, float){}
 void game_whack_apply(float, float){}
index 18469f1..131dd7a 100644 (file)
 #include "pstypes.h"
 
 
-void game_enter_state(int, int){}
+extern "C" void game_enter_state(int, int){}
 void game_leave_state(int, int){}
 void game_do_state(int){}
-void game_process_event(int, int){}
+extern "C" void game_process_event(int, int){}
 char *Game_CDROM_dir;
 void game_stop_looped_sounds(){}
 int set_cdrom_path(int){return 0;}
@@ -70,7 +70,7 @@ int Framerate_delay;
 char *Game_current_mission_filename;
 int Warpout_forced;
 float Warpout_time;
-int game_start_mission(void){return 0;}
+extern "C" int game_start_mission(void){return 0;}
 void game_level_close(){}
 void game_flash(float, float, float){}
 void game_whack_apply(float, float){}
index 74da4bd..a809185 100644 (file)
@@ -63,10 +63,10 @@ void freespace_menu_background()
        gr_clear();
 }
 
-void game_enter_state(int, int){}
+extern "C" void game_enter_state(int, int){}
 void game_leave_state(int, int){}
 void game_do_state(int){}
-void game_process_event(int, int){}
+extern "C" void game_process_event(int, int){}
 void game_stop_looped_sounds(){}
 void game_flush(){}
 int Game_skill_level;
@@ -81,7 +81,7 @@ int Framerate_delay;
 char *Game_current_mission_filename;
 int Warpout_forced;
 float Warpout_time;
-int game_start_mission(){return 0;}
+extern "C" int game_start_mission(){return 0;}
 void game_level_close(){}
 void game_whack_apply(float, float){}
 void game_flash(float, float, float){}