From 6b846aa62924df0dea4af78c6333f0bd141bda78 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Thu, 26 Jul 2012 00:18:02 +0200 Subject: Compile fixes Fixed some compiling issues --- src/CBot/CBot.h | 2 +- src/graphics/common/engine.h | 2 +- src/graphics/common/particle.h | 2 +- src/sound/sound.h | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/CBot/CBot.h b/src/CBot/CBot.h index d618131..3b7d7e8 100644 --- a/src/CBot/CBot.h +++ b/src/CBot/CBot.h @@ -32,7 +32,7 @@ // fix for MSVC instruction __asm int 3 (setting a trap) -#ifdef __MINGW32__ +#if defined(__MINGW32__) || defined(__GNUC__) #define ASM_TRAP() asm("int $3"); #else #define ASM_TRAP() __asm int 3; diff --git a/src/graphics/common/engine.h b/src/graphics/common/engine.h index 6d2937c..b36ccbc 100644 --- a/src/graphics/common/engine.h +++ b/src/graphics/common/engine.h @@ -481,7 +481,7 @@ public: void SetLightMode(bool present); bool RetLightMode(); - void SetEditIndentMode(bool auto); + void SetEditIndentMode(bool indentAuto); bool RetEditIndentMode(); void SetEditIndentValue(int value); diff --git a/src/graphics/common/particle.h b/src/graphics/common/particle.h index e430e2a..b72075f 100644 --- a/src/graphics/common/particle.h +++ b/src/graphics/common/particle.h @@ -305,7 +305,7 @@ protected: void DrawParticuleWheel(int i); CObject* SearchObjectGun(Math::Vector old, Math::Vector pos, ParticuleType type, CObject *father); CObject* SearchObjectRay(Math::Vector pos, Math::Vector goal, ParticuleType type, CObject *father); - void Play(Snd::Sound sound, Math::Vector pos, float amplitude); + void Play(Sound sound, Math::Vector pos, float amplitude); bool TrackMove(int i, Math::Vector pos, float progress); void TrackDraw(int i, ParticuleType type); diff --git a/src/sound/sound.h b/src/sound/sound.h index 598ffe3..2eb92a0 100644 --- a/src/sound/sound.h +++ b/src/sound/sound.h @@ -28,6 +28,8 @@ #include +#include + /*! * Maximum possible audio volume */ -- cgit v1.2.3-1-g7c22