From 3fe3431586b70da7207d383172654976b66b715e Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Sat, 13 Apr 2002 01:53:11 +0000 Subject: [PATCH] Fixed VC++ compiling errors. --- src/game/intro.cpp | 2 +- src/sound/mad.cpp | 2 +- src/ui/botpanel.cpp | 2 +- src/ui/interface.cpp | 2 +- src/ui/menus.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/intro.cpp b/src/game/intro.cpp index 80031b84d..b6539a06a 100644 --- a/src/game/intro.cpp +++ b/src/game/intro.cpp @@ -130,7 +130,7 @@ local void IntroCallbackKey1(unsigned key __attribute__((unused)), ** Callback for input. */ local void IntroCallbackKey2(unsigned key, - unsigned keychar __attribute((unused))) + unsigned keychar __attribute__((unused))) { if( UseContinueButton ) { if( (key =='c' || key =='\r') && diff --git a/src/sound/mad.cpp b/src/sound/mad.cpp index 2d48f8529..4c9bdb022 100644 --- a/src/sound/mad.cpp +++ b/src/sound/mad.cpp @@ -170,7 +170,7 @@ local enum mad_flow MAD_write(void *user, */ local enum mad_flow MAD_error(void *user __attribute__((unused)), struct mad_stream *stream, - struct mad_frame *frame __attribute((unused))) + struct mad_frame *frame __attribute__((unused))) { fprintf(stderr, "decoding error 0x%04x (%s)\n", stream->error, mad_stream_errorstr(stream)); diff --git a/src/ui/botpanel.cpp b/src/ui/botpanel.cpp index a35c4ce5b..5432940e2 100644 --- a/src/ui/botpanel.cpp +++ b/src/ui/botpanel.cpp @@ -220,7 +220,7 @@ global void SaveButtons(FILE* file) } fprintf(file," 'key \""); switch( UnitButtonTable[i]->Key ) { - case '\e': + case '\033': fprintf(file,"\\%03o",UnitButtonTable[i]->Key); break; default: diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp index 72eb36092..67ffb54bb 100644 --- a/src/ui/interface.cpp +++ b/src/ui/interface.cpp @@ -878,7 +878,7 @@ local int InputKey(int key) } NetworkChatMessage(Input); - case '\e': + case '\033': ClearStatusLine(); KeyState = KeyStateCommand; return 1; diff --git a/src/ui/menus.cpp b/src/ui/menus.cpp index 47ea7d0c0..921fab0f1 100644 --- a/src/ui/menus.cpp +++ b/src/ui/menus.cpp @@ -3081,7 +3081,7 @@ local void ScenSelectHSCdVolumeAction(Menuitem *mi, int i) } #else local void ScenSelectHSCdVolumeAction(Menuitem *mi __attribute__((unused)), - int i __attribute((unused))) + int i __attribute__((unused))) { } #endif