From 209a2ede2cdeade0d543969e7b2ff62fee84b43e Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Mon, 25 Nov 2002 15:29:57 +0000 Subject: Last of the config.h mods... #ifdef HAVE_CONFIG_H #include #endif added to these files. Kent -- mein@cs.umn.edu --- intern/SoundSystem/dummy/SND_DummyDevice.cpp | 4 ++++ intern/SoundSystem/fmod/SND_FmodDevice.cpp | 6 +++++- intern/SoundSystem/intern/SND_AudioDevice.cpp | 5 ++++- intern/SoundSystem/intern/SND_C-api.cpp | 4 ++++ intern/SoundSystem/intern/SND_CDObject.cpp | 3 +++ intern/SoundSystem/intern/SND_DeviceManager.cpp | 4 ++++ intern/SoundSystem/intern/SND_IdObject.cpp | 4 ++++ intern/SoundSystem/intern/SND_Scene.cpp | 4 ++++ intern/SoundSystem/intern/SND_SoundListener.cpp | 4 ++++ intern/SoundSystem/intern/SND_SoundObject.cpp | 4 +++- intern/SoundSystem/intern/SND_Utils.cpp | 4 ++++ intern/SoundSystem/intern/SND_WaveCache.cpp | 4 ++++ intern/SoundSystem/intern/SND_WaveSlot.cpp | 5 +++-- intern/SoundSystem/openal/SND_OpenALDevice.cpp | 4 ++++ intern/SoundSystem/openal/pthread_cancel.cpp | 5 +++++ source/blender/img/intern/IMG_Api.cpp | 4 +++- source/blender/img/intern/IMG_BrushRGBA32.cpp | 5 +++-- source/blender/img/intern/IMG_CanvasRGBA32.cpp | 4 +++- source/blender/img/intern/IMG_Line.cpp | 4 ++++ source/blender/img/intern/IMG_Pixmap.cpp | 7 ++++--- source/blender/img/intern/IMG_PixmapRGBA32.cpp | 4 +++- source/blender/img/intern/IMG_Rect.cpp | 3 +++ source/blender/render/intern/source/RE_DummyShadowBuffer.cpp | 8 +++++--- source/blender/render/intern/source/RE_basicShadowBuffer.cpp | 7 +++++-- source/blender/render/intern/source/shadowBuffer.cpp | 6 ++++-- source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp | 4 ++++ source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp | 5 +++-- source/gameengine/BlenderRoutines/KX_BlenderGL.cpp | 3 +++ source/gameengine/BlenderRoutines/KX_BlenderInputDevice.cpp | 5 +++++ source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp | 3 +++ source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp | 3 +++ source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.cpp | 5 ++++- source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp | 4 ++++ source/gameengine/BlenderRoutines/KX_BlenderSystem.cpp | 3 +++ source/gameengine/Converter/BL_ActionActuator.cpp | 4 ++++ source/gameengine/Converter/BL_ArmatureObject.cpp | 4 ++++ source/gameengine/Converter/BL_BlenderDataConversion.cpp | 4 ++++ source/gameengine/Converter/BL_DeformableGameObject.cpp | 4 ++++ source/gameengine/Converter/BL_MeshDeformer.cpp | 6 +++++- source/gameengine/Converter/BL_SkinDeformer.cpp | 4 ++++ source/gameengine/Converter/BL_SkinMeshObject.cpp | 4 ++++ source/gameengine/Converter/BlenderWorldInfo.cpp | 5 ++++- source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp | 5 ++++- source/gameengine/Converter/KX_BlenderSceneConverter.cpp | 4 ++++ source/gameengine/Converter/KX_ConvertActuators.cpp | 4 ++++ source/gameengine/Converter/KX_ConvertControllers.cpp | 5 ++++- source/gameengine/Converter/KX_ConvertProperties.cpp | 3 +++ source/gameengine/Converter/KX_ConvertSensors.cpp | 4 ++++ source/gameengine/Converter/KX_IpoConvert.cpp | 4 ++++ source/gameengine/Expressions/BoolValue.cpp | 7 ++++--- source/gameengine/Expressions/ConstExpr.cpp | 6 +++--- source/gameengine/Expressions/EXP_C-Api.cpp | 3 +++ source/gameengine/Expressions/EmptyValue.cpp | 6 +++--- source/gameengine/Expressions/ErrorValue.cpp | 10 ++++------ source/gameengine/Expressions/Expression.cpp | 7 ++++--- source/gameengine/Expressions/FloatValue.cpp | 6 +++--- source/gameengine/Expressions/IdentifierExpr.cpp | 5 ++++- source/gameengine/Expressions/IfExpr.cpp | 5 ++++- source/gameengine/Expressions/InputParser.cpp | 4 ++++ source/gameengine/Expressions/IntValue.cpp | 8 +++++--- source/gameengine/Expressions/KX_HashedPtr.cpp | 5 ++++- source/gameengine/Expressions/ListValue.cpp | 7 +++++-- source/gameengine/Expressions/Operator1Expr.cpp | 6 +++++- source/gameengine/Expressions/Operator2Expr.cpp | 8 +++++--- source/gameengine/Expressions/PyObjectPlus.cpp | 4 ++++ source/gameengine/Expressions/StringValue.cpp | 5 +++-- source/gameengine/Expressions/Value.cpp | 5 +++-- source/gameengine/Expressions/VectorValue.cpp | 4 ++++ source/gameengine/GameLogic/SCA_ANDController.cpp | 4 ++++ source/gameengine/GameLogic/SCA_AlwaysEventManager.cpp | 6 ++++-- source/gameengine/GameLogic/SCA_AlwaysSensor.cpp | 4 ++++ source/gameengine/GameLogic/SCA_EventManager.cpp | 5 +++-- source/gameengine/GameLogic/SCA_ExpressionController.cpp | 7 +++++-- source/gameengine/GameLogic/SCA_IActuator.cpp | 3 +++ source/gameengine/GameLogic/SCA_IController.cpp | 5 ++++- source/gameengine/GameLogic/SCA_IInputDevice.cpp | 5 +++-- source/gameengine/GameLogic/SCA_ILogicBrick.cpp | 4 +++- source/gameengine/GameLogic/SCA_IObject.cpp | 7 +++++-- source/gameengine/GameLogic/SCA_IScene.cpp | 4 +++- source/gameengine/GameLogic/SCA_ISensor.cpp | 6 ++++-- source/gameengine/GameLogic/SCA_KeyboardManager.cpp | 4 ++++ source/gameengine/GameLogic/SCA_KeyboardSensor.cpp | 4 +++- source/gameengine/GameLogic/SCA_LogicManager.cpp | 6 ++++-- source/gameengine/GameLogic/SCA_MouseManager.cpp | 4 ++++ source/gameengine/GameLogic/SCA_MouseSensor.cpp | 4 ++++ source/gameengine/GameLogic/SCA_ORController.cpp | 4 ++++ source/gameengine/GameLogic/SCA_PropertyActuator.cpp | 5 ++++- source/gameengine/GameLogic/SCA_PropertyEventManager.cpp | 4 +++- source/gameengine/GameLogic/SCA_PropertySensor.cpp | 4 ++++ source/gameengine/GameLogic/SCA_PythonController.cpp | 3 +++ source/gameengine/GameLogic/SCA_RandomActuator.cpp | 6 +++++- source/gameengine/GameLogic/SCA_RandomEventManager.cpp | 4 ++++ source/gameengine/GameLogic/SCA_RandomNumberGenerator.cpp | 4 ++++ source/gameengine/GameLogic/SCA_RandomSensor.cpp | 4 ++++ source/gameengine/GameLogic/SCA_TimeEventManager.cpp | 4 ++++ source/gameengine/GamePlayer/common/GPC_Canvas.cpp | 4 ++++ source/gameengine/GamePlayer/common/GPC_Engine.cpp | 5 +++++ source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp | 3 +++ source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp | 3 +++ source/gameengine/GamePlayer/common/GPC_PolygonMaterial.cpp | 6 ++++-- source/gameengine/GamePlayer/common/GPC_RawImage.cpp | 5 ++++- .../gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp | 5 +++-- source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp | 5 +++-- source/gameengine/GamePlayer/common/GPC_RenderTools.cpp | 3 +++ source/gameengine/GamePlayer/common/GPC_System.cpp | 5 ++++- source/gameengine/GamePlayer/common/bmfont.cpp | 4 ++++ source/gameengine/GamePlayer/common/unix/GPU_Canvas.cpp | 5 ++++- source/gameengine/GamePlayer/common/unix/GPU_Engine.cpp | 6 +++--- .../gameengine/GamePlayer/common/unix/GPU_KeyboardDevice.cpp | 4 ++++ source/gameengine/GamePlayer/common/unix/GPU_System.cpp | 4 +++- source/gameengine/GamePlayer/common/windows/GPW_Canvas.cpp | 4 ++++ source/gameengine/GamePlayer/common/windows/GPW_Engine.cpp | 3 +++ .../GamePlayer/common/windows/GPW_KeyboardDevice.cpp | 3 +++ source/gameengine/GamePlayer/common/windows/GPW_System.cpp | 4 +++- source/gameengine/GamePlayer/ghost/GPG_Application.cpp | 4 ++++ source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp | 5 +++-- source/gameengine/GamePlayer/ghost/GPG_KeyboardDevice.cpp | 4 +++- source/gameengine/GamePlayer/ghost/GPG_System.cpp | 5 +++-- source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 4 ++++ source/gameengine/Ketsji/KXNetwork/KX_NetworkEventManager.cpp | 4 ++++ .../gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.cpp | 4 ++++ source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp | 4 ++++ .../gameengine/Ketsji/KXNetwork/KX_NetworkObjectActuator.cpp | 4 ++++ source/gameengine/Ketsji/KXNetwork/KX_NetworkObjectSensor.cpp | 5 +++++ source/gameengine/Ketsji/KX_CDActuator.cpp | 6 +++++- source/gameengine/Ketsji/KX_Camera.cpp | 4 ++++ source/gameengine/Ketsji/KX_CameraActuator.cpp | 4 ++++ source/gameengine/Ketsji/KX_CameraIpoSGController.cpp | 5 +++-- source/gameengine/Ketsji/KX_ConstraintActuator.cpp | 5 +++++ source/gameengine/Ketsji/KX_ConstraintWrapper.cpp | 5 ++++- source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp | 5 +++++ source/gameengine/Ketsji/KX_EmptyObject.cpp | 5 +++++ source/gameengine/Ketsji/KX_GameActuator.cpp | 4 ++++ source/gameengine/Ketsji/KX_GameObject.cpp | 4 ++++ source/gameengine/Ketsji/KX_IPO_SGController.cpp | 4 ++++ source/gameengine/Ketsji/KX_IPhysicsController.cpp | 3 +++ source/gameengine/Ketsji/KX_IpoActuator.cpp | 3 +++ source/gameengine/Ketsji/KX_KetsjiEngine.cpp | 5 +++++ source/gameengine/Ketsji/KX_Light.cpp | 4 ++++ source/gameengine/Ketsji/KX_LightIpoSGController.cpp | 5 +++-- source/gameengine/Ketsji/KX_MeshProxy.cpp | 4 +++- source/gameengine/Ketsji/KX_MotionState.cpp | 4 ++++ source/gameengine/Ketsji/KX_MouseFocusSensor.cpp | 10 ++++------ source/gameengine/Ketsji/KX_NearSensor.cpp | 3 +++ source/gameengine/Ketsji/KX_ObColorIpoSGController.cpp | 4 +++- source/gameengine/Ketsji/KX_ObjectActuator.cpp | 3 +++ source/gameengine/Ketsji/KX_OdePhysicsController.cpp | 3 +++ source/gameengine/Ketsji/KX_OrientationInterpolator.cpp | 6 ++++-- source/gameengine/Ketsji/KX_PhysicsObjectWrapper.cpp | 4 ++++ source/gameengine/Ketsji/KX_PositionInterpolator.cpp | 6 ++++-- source/gameengine/Ketsji/KX_PyConstraintBinding.cpp | 3 +++ source/gameengine/Ketsji/KX_PythonInit.cpp | 4 ++++ source/gameengine/Ketsji/KX_RadarSensor.cpp | 6 +++++- source/gameengine/Ketsji/KX_RayEventManager.cpp | 5 +++++ source/gameengine/Ketsji/KX_RaySensor.cpp | 3 +++ source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp | 4 ++++ source/gameengine/Ketsji/KX_SCA_EndObjectActuator.cpp | 4 ++++ source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.cpp | 5 ++++- source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp | 3 +++ source/gameengine/Ketsji/KX_ScalarInterpolator.cpp | 5 ++++- source/gameengine/Ketsji/KX_ScalingInterpolator.cpp | 6 ++++-- source/gameengine/Ketsji/KX_Scene.cpp | 4 ++++ source/gameengine/Ketsji/KX_SceneActuator.cpp | 4 ++++ source/gameengine/Ketsji/KX_SoundActuator.cpp | 4 ++++ source/gameengine/Ketsji/KX_SumoPhysicsController.cpp | 4 +++- source/gameengine/Ketsji/KX_TimeCategoryLogger.cpp | 3 +++ source/gameengine/Ketsji/KX_TimeLogger.cpp | 4 +++- source/gameengine/Ketsji/KX_TouchEventManager.cpp | 5 ++++- source/gameengine/Ketsji/KX_TouchSensor.cpp | 4 ++++ source/gameengine/Ketsji/KX_TrackToActuator.cpp | 3 +++ source/gameengine/Ketsji/KX_VertexProxy.cpp | 4 +++- source/gameengine/Ketsji/KX_VisibilityActuator.cpp | 4 ++++ source/gameengine/Ketsji/KX_WorldInfo.cpp | 3 +++ source/gameengine/Ketsji/KX_WorldIpoController.cpp | 5 ++++- .../LoopBackNetwork/NG_LoopBackNetworkDeviceInterface.cpp | 4 ++++ source/gameengine/Network/NG_NetworkMessage.cpp | 4 ++++ source/gameengine/Network/NG_NetworkObject.cpp | 4 ++++ source/gameengine/Network/NG_NetworkScene.cpp | 4 ++++ .../TerraplayNetwork/NG_TerraplayNetworkDeviceInterface.cpp | 4 ++++ source/gameengine/Physics/BlOde/OdePhysicsController.cpp | 4 ++++ source/gameengine/Physics/BlOde/OdePhysicsEnvironment.cpp | 3 +++ source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp | 4 +++- source/gameengine/Physics/Sumo/Fuzzics/sample/particle.cpp | 4 ++++ source/gameengine/Physics/Sumo/Fuzzics/sample/particle0.cpp | 4 ++++ source/gameengine/Physics/Sumo/Fuzzics/src/SM_FhObject.cpp | 4 ++++ source/gameengine/Physics/Sumo/Fuzzics/src/SM_Object.cpp | 4 ++++ source/gameengine/Physics/Sumo/Fuzzics/src/SM_Scene.cpp | 4 ++++ source/gameengine/Physics/Sumo/SumoPhysicsController.cpp | 3 +++ source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp | 3 +++ source/gameengine/Physics/common/PHY_IMotionState.cpp | 4 ++++ source/gameengine/Physics/common/PHY_IPhysicsController.cpp | 3 +++ source/gameengine/Physics/common/PHY_IPhysicsEnvironment.cpp | 4 ++++ source/gameengine/Rasterizer/RAS_BucketManager.cpp | 3 +++ source/gameengine/Rasterizer/RAS_FramingManager.cpp | 5 ++++- source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp | 3 +++ source/gameengine/Rasterizer/RAS_IRenderTools.cpp | 4 +++- source/gameengine/Rasterizer/RAS_MaterialBucket.cpp | 5 ++++- source/gameengine/Rasterizer/RAS_MeshObject.cpp | 5 ++++- .../Rasterizer/RAS_OpenGLRasterizer/RAS_CheckVertexArrays.cpp | 4 ++++ .../Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp | 4 ++++ .../Rasterizer/RAS_OpenGLRasterizer/RAS_VAOpenGLRasterizer.cpp | 7 ++++--- source/gameengine/Rasterizer/RAS_Polygon.cpp | 4 ++++ source/gameengine/Rasterizer/RAS_TexVert.cpp | 3 +++ source/gameengine/Rasterizer/RAS_texmatrix.cpp | 5 +++-- source/gameengine/SceneGraph/SG_Controller.cpp | 3 +++ source/gameengine/SceneGraph/SG_IObject.cpp | 5 ++++- source/gameengine/SceneGraph/SG_Node.cpp | 6 ++++-- source/gameengine/SceneGraph/SG_Spatial.cpp | 4 ++++ source/kernel/gen_system/GEN_HashedPtr.cpp | 4 ++++ source/kernel/gen_system/GEN_Matrix4x4.cpp | 4 +++- source/kernel/gen_system/SYS_SingletonSystem.cpp | 4 ++++ source/kernel/gen_system/SYS_System.cpp | 4 ++++ 212 files changed, 799 insertions(+), 146 deletions(-) diff --git a/intern/SoundSystem/dummy/SND_DummyDevice.cpp b/intern/SoundSystem/dummy/SND_DummyDevice.cpp index 4d1f69c6f33..820c151377a 100644 --- a/intern/SoundSystem/dummy/SND_DummyDevice.cpp +++ b/intern/SoundSystem/dummy/SND_DummyDevice.cpp @@ -31,6 +31,10 @@ * SND_FmodDevice derived from SND_IAudioDevice */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) // get rid of stupid stl-visual compiler debug warning #endif //WIN32 diff --git a/intern/SoundSystem/fmod/SND_FmodDevice.cpp b/intern/SoundSystem/fmod/SND_FmodDevice.cpp index cc01b864428..6389971a1f6 100644 --- a/intern/SoundSystem/fmod/SND_FmodDevice.cpp +++ b/intern/SoundSystem/fmod/SND_FmodDevice.cpp @@ -31,6 +31,10 @@ * SND_FmodDevice derived from SND_IAudioDevice */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) // get rid of stupid stl-visual compiler debug warning #endif //WIN32 @@ -576,4 +580,4 @@ void SND_FmodDevice::StopUsingDSP() { if (m_dspunit) FSOUND_DSP_SetActive(m_dspunit, false); -} \ No newline at end of file +} diff --git a/intern/SoundSystem/intern/SND_AudioDevice.cpp b/intern/SoundSystem/intern/SND_AudioDevice.cpp index 20800153128..3fd8334d506 100644 --- a/intern/SoundSystem/intern/SND_AudioDevice.cpp +++ b/intern/SoundSystem/intern/SND_AudioDevice.cpp @@ -30,9 +30,12 @@ */ #include "SND_AudioDevice.h" - #include "SND_SoundObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. // It can occasionally cause DevStudio to have internal compiler warnings. diff --git a/intern/SoundSystem/intern/SND_C-api.cpp b/intern/SoundSystem/intern/SND_C-api.cpp index 8a4fc8f31a6..1b03d66562c 100644 --- a/intern/SoundSystem/intern/SND_C-api.cpp +++ b/intern/SoundSystem/intern/SND_C-api.cpp @@ -34,6 +34,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "SND_C-api.h" #include "SND_DeviceManager.h" #include "SND_Scene.h" diff --git a/intern/SoundSystem/intern/SND_CDObject.cpp b/intern/SoundSystem/intern/SND_CDObject.cpp index 97b502970b7..e4fcdfaceeb 100644 --- a/intern/SoundSystem/intern/SND_CDObject.cpp +++ b/intern/SoundSystem/intern/SND_CDObject.cpp @@ -36,6 +36,9 @@ #include "SND_CDObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif SND_CDObject* SND_CDObject::m_instance = NULL; diff --git a/intern/SoundSystem/intern/SND_DeviceManager.cpp b/intern/SoundSystem/intern/SND_DeviceManager.cpp index a3e72f8e9f6..d6f23ff5de4 100644 --- a/intern/SoundSystem/intern/SND_DeviceManager.cpp +++ b/intern/SoundSystem/intern/SND_DeviceManager.cpp @@ -34,6 +34,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "SND_DeviceManager.h" #include "SND_DependKludge.h" #include "SND_DummyDevice.h" diff --git a/intern/SoundSystem/intern/SND_IdObject.cpp b/intern/SoundSystem/intern/SND_IdObject.cpp index b7e13cacbe6..eac95de64a4 100644 --- a/intern/SoundSystem/intern/SND_IdObject.cpp +++ b/intern/SoundSystem/intern/SND_IdObject.cpp @@ -36,6 +36,10 @@ #include "SND_IdObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif + SND_IdObject::SND_IdObject() { } diff --git a/intern/SoundSystem/intern/SND_Scene.cpp b/intern/SoundSystem/intern/SND_Scene.cpp index 4417dfbcfc9..4b59b17e458 100644 --- a/intern/SoundSystem/intern/SND_Scene.cpp +++ b/intern/SoundSystem/intern/SND_Scene.cpp @@ -34,6 +34,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) // Get rid of stupid stl-visual compiler debug warning #endif //WIN32 diff --git a/intern/SoundSystem/intern/SND_SoundListener.cpp b/intern/SoundSystem/intern/SND_SoundListener.cpp index 281da2aa7fb..0209ac5683a 100644 --- a/intern/SoundSystem/intern/SND_SoundListener.cpp +++ b/intern/SoundSystem/intern/SND_SoundListener.cpp @@ -36,6 +36,10 @@ #include "SND_SoundListener.h" +#ifdef HAVE_CONFIG_H +#include +#endif + SND_SoundListener::SND_SoundListener() { m_modified = true; diff --git a/intern/SoundSystem/intern/SND_SoundObject.cpp b/intern/SoundSystem/intern/SND_SoundObject.cpp index 69066d0a2dd..e835b012ac1 100644 --- a/intern/SoundSystem/intern/SND_SoundObject.cpp +++ b/intern/SoundSystem/intern/SND_SoundObject.cpp @@ -36,7 +36,9 @@ #include "SND_SoundObject.h" - +#ifdef HAVE_CONFIG_H +#include +#endif SND_SoundObject::SND_SoundObject()// : m_modified(true) { diff --git a/intern/SoundSystem/intern/SND_Utils.cpp b/intern/SoundSystem/intern/SND_Utils.cpp index 543251e431f..d356f17b897 100644 --- a/intern/SoundSystem/intern/SND_Utils.cpp +++ b/intern/SoundSystem/intern/SND_Utils.cpp @@ -48,6 +48,10 @@ extern "C" { #include #include +#ifdef HAVE_CONFIG_H +#include +#endif + #if defined(WIN32) #include #else diff --git a/intern/SoundSystem/intern/SND_WaveCache.cpp b/intern/SoundSystem/intern/SND_WaveCache.cpp index 279bc29aa83..0e4a2603789 100644 --- a/intern/SoundSystem/intern/SND_WaveCache.cpp +++ b/intern/SoundSystem/intern/SND_WaveCache.cpp @@ -34,6 +34,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) // Get rid of stupid stl-visual compiler debug warning #endif //WIN32 diff --git a/intern/SoundSystem/intern/SND_WaveSlot.cpp b/intern/SoundSystem/intern/SND_WaveSlot.cpp index 51356bba4bf..6c74e326743 100644 --- a/intern/SoundSystem/intern/SND_WaveSlot.cpp +++ b/intern/SoundSystem/intern/SND_WaveSlot.cpp @@ -29,10 +29,11 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ - #include "SND_WaveSlot.h" - +#ifdef HAVE_CONFIG_H +#include +#endif SND_WaveSlot::~SND_WaveSlot() { diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.cpp b/intern/SoundSystem/openal/SND_OpenALDevice.cpp index 9364b6b1dbb..67c7f1f2362 100644 --- a/intern/SoundSystem/openal/SND_OpenALDevice.cpp +++ b/intern/SoundSystem/openal/SND_OpenALDevice.cpp @@ -31,6 +31,10 @@ * SND_OpenALDevice derived from SND_IAudioDevice */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) // get rid of stupid stl-visual compiler debug warning #endif //WIN32 diff --git a/intern/SoundSystem/openal/pthread_cancel.cpp b/intern/SoundSystem/openal/pthread_cancel.cpp index de05c742dea..c46c1f2c453 100644 --- a/intern/SoundSystem/openal/pthread_cancel.cpp +++ b/intern/SoundSystem/openal/pthread_cancel.cpp @@ -29,6 +29,11 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** * FreeBSD 3.4 does not yet have pthread_cancel (3.5 and above do) */ + +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef __FreeBSD__ #include diff --git a/source/blender/img/intern/IMG_Api.cpp b/source/blender/img/intern/IMG_Api.cpp index 1be8b294c28..95f7204c525 100644 --- a/source/blender/img/intern/IMG_Api.cpp +++ b/source/blender/img/intern/IMG_Api.cpp @@ -30,10 +30,12 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ #include "../IMG_Api.h" - #include "IMG_BrushRGBA32.h" #include "IMG_CanvasRGBA32.h" +#ifdef HAVE_CONFIG_H +#include +#endif IMG_BrushPtr IMG_BrushCreate(unsigned int w, unsigned int h, float r, float g, float b, float a) { diff --git a/source/blender/img/intern/IMG_BrushRGBA32.cpp b/source/blender/img/intern/IMG_BrushRGBA32.cpp index 7c78e98a8cf..72e1c57ef63 100644 --- a/source/blender/img/intern/IMG_BrushRGBA32.cpp +++ b/source/blender/img/intern/IMG_BrushRGBA32.cpp @@ -30,10 +30,11 @@ */ #include "IMG_BrushRGBA32.h" - - #include +#ifdef HAVE_CONFIG_H +#include +#endif IMG_BrushRGBA32::IMG_BrushRGBA32(TUns32 w, TUns32 h, const IMG_ColorRGB& c, float a) : IMG_PixmapRGBA32(w, h), m_color(c), m_alpha(a) diff --git a/source/blender/img/intern/IMG_CanvasRGBA32.cpp b/source/blender/img/intern/IMG_CanvasRGBA32.cpp index 5358265337d..2fd5e276298 100644 --- a/source/blender/img/intern/IMG_CanvasRGBA32.cpp +++ b/source/blender/img/intern/IMG_CanvasRGBA32.cpp @@ -31,7 +31,9 @@ #include "IMG_CanvasRGBA32.h" - +#ifdef HAVE_CONFIG_H +#include +#endif IMG_CanvasRGBA32::IMG_CanvasRGBA32(TUns32 width, TUns32 height) : IMG_PixmapRGBA32(width, height) diff --git a/source/blender/img/intern/IMG_Line.cpp b/source/blender/img/intern/IMG_Line.cpp index 2b864a63705..4fb4fb83ca4 100644 --- a/source/blender/img/intern/IMG_Line.cpp +++ b/source/blender/img/intern/IMG_Line.cpp @@ -31,3 +31,7 @@ */ #include "IMG_Line.h" +#ifdef HAVE_CONFIG_H +#include +#endif + diff --git a/source/blender/img/intern/IMG_Pixmap.cpp b/source/blender/img/intern/IMG_Pixmap.cpp index fa2176d299c..dba2fddb4dd 100644 --- a/source/blender/img/intern/IMG_Pixmap.cpp +++ b/source/blender/img/intern/IMG_Pixmap.cpp @@ -31,8 +31,9 @@ #include "IMG_Pixmap.h" - - +#ifdef HAVE_CONFIG_H +#include +#endif IMG_Pixmap::IMG_Pixmap() { @@ -56,4 +57,4 @@ IMG_Pixmap::IMG_Pixmap() IMG_Pixmap::~IMG_Pixmap() { -} \ No newline at end of file +} diff --git a/source/blender/img/intern/IMG_PixmapRGBA32.cpp b/source/blender/img/intern/IMG_PixmapRGBA32.cpp index 7ef716643b7..5ff647cd8ab 100644 --- a/source/blender/img/intern/IMG_PixmapRGBA32.cpp +++ b/source/blender/img/intern/IMG_PixmapRGBA32.cpp @@ -31,7 +31,9 @@ #include "IMG_PixmapRGBA32.h" - +#ifdef HAVE_CONFIG_H +#include +#endif IMG_PixmapRGBA32::IMG_PixmapRGBA32(TUns32 width, TUns32 height) : IMG_Pixmap(), m_mem(width * height) diff --git a/source/blender/img/intern/IMG_Rect.cpp b/source/blender/img/intern/IMG_Rect.cpp index 67357712708..c2e7bfc89c6 100644 --- a/source/blender/img/intern/IMG_Rect.cpp +++ b/source/blender/img/intern/IMG_Rect.cpp @@ -31,6 +31,9 @@ #include "IMG_Rect.h" +#ifdef HAVE_CONFIG_H +#include +#endif TVisibility IMG_Rect::getVisibility(IMG_Rect& r) const { diff --git a/source/blender/render/intern/source/RE_DummyShadowBuffer.cpp b/source/blender/render/intern/source/RE_DummyShadowBuffer.cpp index e2adefc05f2..02858cba717 100644 --- a/source/blender/render/intern/source/RE_DummyShadowBuffer.cpp +++ b/source/blender/render/intern/source/RE_DummyShadowBuffer.cpp @@ -30,11 +30,13 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ -// #include - #include "render_intern.h" - #include "RE_DummyShadowBuffer.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + struct LampRen; RE_DummyShadowBuffer::RE_DummyShadowBuffer(void) diff --git a/source/blender/render/intern/source/RE_basicShadowBuffer.cpp b/source/blender/render/intern/source/RE_basicShadowBuffer.cpp index e126a755c35..17feea283dc 100644 --- a/source/blender/render/intern/source/RE_basicShadowBuffer.cpp +++ b/source/blender/render/intern/source/RE_basicShadowBuffer.cpp @@ -32,8 +32,6 @@ #include #include - -//#include #include "MEM_guardedalloc.h" #include "BLI_arithb.h" @@ -49,6 +47,11 @@ /* own include */ #include "RE_basicShadowBuffer.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + /* crud */ #define MIN2(x,y) ( (x)<(y) ? (x) : (y) ) /* ------------------------------------------------------------------------- */ diff --git a/source/blender/render/intern/source/shadowBuffer.cpp b/source/blender/render/intern/source/shadowBuffer.cpp index 76668f4e9ac..b60f7e160eb 100644 --- a/source/blender/render/intern/source/shadowBuffer.cpp +++ b/source/blender/render/intern/source/shadowBuffer.cpp @@ -31,8 +31,6 @@ */ #include -//#include - #include "render.h" #include "render_intern.h" #include "shadbuf.h" @@ -41,6 +39,10 @@ #include "RE_DummyShadowBuffer.h" /* A dummy shadow buffer */ #include "RE_basicShadowBuffer.h" /* the 'old' shadow buffer */ +#ifdef HAVE_CONFIG_H +#include +#endif + struct ShadBuf; struct LampRen; struct Lamp; diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp index ba0c7fa3917..a70bd6c6f30 100644 --- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp +++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp @@ -31,6 +31,10 @@ * Blender's Ketsji startpoint */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // don't show stl-warnings #pragma warning (disable:4786) diff --git a/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp b/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp index 3dfae217453..03f78c4b145 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp @@ -30,10 +30,11 @@ */ #include "BIF_scrarea.h" - - #include "KX_BlenderCanvas.h" +#ifdef HAVE_CONFIG_H +#include +#endif KX_BlenderCanvas::KX_BlenderCanvas(struct ScrArea *area) : m_area(area) diff --git a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp index c2b4da62ece..d8399fd3351 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp @@ -31,6 +31,9 @@ #include "KX_BlenderGL.h" +#ifdef HAVE_CONFIG_H +#include +#endif /* * This little block needed for linking to Blender... diff --git a/source/gameengine/BlenderRoutines/KX_BlenderInputDevice.cpp b/source/gameengine/BlenderRoutines/KX_BlenderInputDevice.cpp index b364d4d40dd..1423418924c 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderInputDevice.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderInputDevice.cpp @@ -30,3 +30,8 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ #include "KX_BlenderInputDevice.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + diff --git a/source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp b/source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp index 81f233d6433..b128d616209 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp @@ -29,6 +29,9 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif #ifdef WIN32 // annoying warnings about truncated STL debug info diff --git a/source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp b/source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp index e3d4f36cc26..92e0a6113bb 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp @@ -29,6 +29,9 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif #ifdef WIN32 // annoying warnings about truncated STL debug info diff --git a/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.cpp b/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.cpp index fc7eb3a6c7f..be87fb0adc2 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.cpp @@ -29,10 +29,13 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ - #include "KX_BlenderPolyMaterial.h" #include "BKE_mesh.h" +#ifdef HAVE_CONFIG_H +#include +#endif + KX_BlenderPolyMaterial::KX_BlenderPolyMaterial(const STR_String &texname, bool ba, const STR_String& matname, diff --git a/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp b/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp index 4fdb9aafc33..c9e86116052 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp @@ -31,6 +31,10 @@ #include "KX_BlenderRenderTools.h" +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // OpenGL gl.h needs 'windows.h' on windows platforms #include diff --git a/source/gameengine/BlenderRoutines/KX_BlenderSystem.cpp b/source/gameengine/BlenderRoutines/KX_BlenderSystem.cpp index f690f7c74e2..290f1d71777 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderSystem.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderSystem.cpp @@ -31,6 +31,9 @@ #include "KX_ISystem.h" +#ifdef HAVE_CONFIG_H +#include +#endif #ifdef WIN32 #pragma warning (disable :4786) diff --git a/source/gameengine/Converter/BL_ActionActuator.cpp b/source/gameengine/Converter/BL_ActionActuator.cpp index cbe0dd2263c..50860bb4ad3 100644 --- a/source/gameengine/Converter/BL_ActionActuator.cpp +++ b/source/gameengine/Converter/BL_ActionActuator.cpp @@ -46,6 +46,10 @@ #include "MT_Matrix4x4.h" #include "BKE_utildefines.h" +#ifdef HAVE_CONFIG_H +#include +#endif + BL_ActionActuator::~BL_ActionActuator() { if (m_pose) { diff --git a/source/gameengine/Converter/BL_ArmatureObject.cpp b/source/gameengine/Converter/BL_ArmatureObject.cpp index 1668cd522a3..0c0dda52d2c 100644 --- a/source/gameengine/Converter/BL_ArmatureObject.cpp +++ b/source/gameengine/Converter/BL_ArmatureObject.cpp @@ -40,6 +40,10 @@ #include "MEM_guardedalloc.h" #include "DNA_action_types.h" +#ifdef HAVE_CONFIG_H +#include +#endif + CValue* BL_ArmatureObject::GetReplica() { BL_ArmatureObject* replica = new BL_ArmatureObject(*this); diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp b/source/gameengine/Converter/BL_BlenderDataConversion.cpp index 2343c372f1b..75c92c7b132 100644 --- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp +++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp @@ -31,6 +31,10 @@ * Convert blender data to ketsji */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable : 4786) #endif diff --git a/source/gameengine/Converter/BL_DeformableGameObject.cpp b/source/gameengine/Converter/BL_DeformableGameObject.cpp index d6830380b00..6395dc26617 100644 --- a/source/gameengine/Converter/BL_DeformableGameObject.cpp +++ b/source/gameengine/Converter/BL_DeformableGameObject.cpp @@ -32,6 +32,10 @@ #include "BL_DeformableGameObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif + BL_DeformableGameObject::~BL_DeformableGameObject() { if (m_pDeformer) diff --git a/source/gameengine/Converter/BL_MeshDeformer.cpp b/source/gameengine/Converter/BL_MeshDeformer.cpp index 3aa4287478d..000bc35b974 100644 --- a/source/gameengine/Converter/BL_MeshDeformer.cpp +++ b/source/gameengine/Converter/BL_MeshDeformer.cpp @@ -31,6 +31,10 @@ * Simple deformation controller that restores a mesh to its rest position */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. // It can occasionally cause DevStudio to have internal compiler warnings. @@ -162,4 +166,4 @@ void BL_MeshDeformer::VerifyStorage() m_tvtot = m_bmesh->totvert; } } - \ No newline at end of file + diff --git a/source/gameengine/Converter/BL_SkinDeformer.cpp b/source/gameengine/Converter/BL_SkinDeformer.cpp index 4eb2b849c3c..81b789dd1ba 100644 --- a/source/gameengine/Converter/BL_SkinDeformer.cpp +++ b/source/gameengine/Converter/BL_SkinDeformer.cpp @@ -30,6 +30,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable : 4786) #endif //WIN32 diff --git a/source/gameengine/Converter/BL_SkinMeshObject.cpp b/source/gameengine/Converter/BL_SkinMeshObject.cpp index 859b495b9d5..2ed1a3a0d48 100644 --- a/source/gameengine/Converter/BL_SkinMeshObject.cpp +++ b/source/gameengine/Converter/BL_SkinMeshObject.cpp @@ -31,6 +31,10 @@ * Deformer that supports armature skinning */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) // get rid of stupid stl-visual compiler debug warning #endif //WIN32 diff --git a/source/gameengine/Converter/BlenderWorldInfo.cpp b/source/gameengine/Converter/BlenderWorldInfo.cpp index 5dd41a317aa..59d7272b64a 100644 --- a/source/gameengine/Converter/BlenderWorldInfo.cpp +++ b/source/gameengine/Converter/BlenderWorldInfo.cpp @@ -31,10 +31,13 @@ #include // printf() - #include "BlenderWorldInfo.h" #include "KX_BlenderGL.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* This little block needed for linking to Blender... */ #ifdef WIN32 #include "BLI_winstuff.h" diff --git a/source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp b/source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp index c75a6e5b4e7..8722f90f456 100644 --- a/source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp +++ b/source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp @@ -29,9 +29,12 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ - #include "KX_BlenderScalarInterpolator.h" +#ifdef HAVE_CONFIG_H +#include +#endif + extern "C" int IPO_GetChannels(struct Ipo *ipo, short *channels); extern "C" float IPO_GetFloatValue(struct Ipo *ipo, /*IPO_Channel*/ short channel, float ctime); diff --git a/source/gameengine/Converter/KX_BlenderSceneConverter.cpp b/source/gameengine/Converter/KX_BlenderSceneConverter.cpp index a043291c5d5..d3a67abecfc 100644 --- a/source/gameengine/Converter/KX_BlenderSceneConverter.cpp +++ b/source/gameengine/Converter/KX_BlenderSceneConverter.cpp @@ -29,6 +29,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) // suppress stl-MSVC debug info warning diff --git a/source/gameengine/Converter/KX_ConvertActuators.cpp b/source/gameengine/Converter/KX_ConvertActuators.cpp index 2628441ba72..0de9ce4bfc3 100644 --- a/source/gameengine/Converter/KX_ConvertActuators.cpp +++ b/source/gameengine/Converter/KX_ConvertActuators.cpp @@ -31,6 +31,10 @@ * Convert Blender actuators for use in the GameEngine */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable : 4786) #endif //WIN32 diff --git a/source/gameengine/Converter/KX_ConvertControllers.cpp b/source/gameengine/Converter/KX_ConvertControllers.cpp index 1a958744d70..5b30f5a4a2e 100644 --- a/source/gameengine/Converter/KX_ConvertControllers.cpp +++ b/source/gameengine/Converter/KX_ConvertControllers.cpp @@ -31,7 +31,6 @@ #include "MEM_guardedalloc.h" - #include "KX_BlenderSceneConverter.h" #include "KX_ConvertControllers.h" #include "KX_Python.h" @@ -46,6 +45,10 @@ #include "KX_GameObject.h" #include "IntValue.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* This little block needed for linking to Blender... */ #ifdef WIN32 #include "BLI_winstuff.h" diff --git a/source/gameengine/Converter/KX_ConvertProperties.cpp b/source/gameengine/Converter/KX_ConvertProperties.cpp index e3cbadc5808..a1807732416 100644 --- a/source/gameengine/Converter/KX_ConvertProperties.cpp +++ b/source/gameengine/Converter/KX_ConvertProperties.cpp @@ -31,6 +31,9 @@ #include "KX_ConvertProperties.h" +#ifdef HAVE_CONFIG_H +#include +#endif /* This little block needed for linking to Blender... */ #ifdef WIN32 diff --git a/source/gameengine/Converter/KX_ConvertSensors.cpp b/source/gameengine/Converter/KX_ConvertSensors.cpp index 42be5354d20..3ec2c3596e5 100644 --- a/source/gameengine/Converter/KX_ConvertSensors.cpp +++ b/source/gameengine/Converter/KX_ConvertSensors.cpp @@ -31,6 +31,10 @@ * Conversion of Blender data blocks to KX sensor system */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable : 4786) #endif //WIN32 diff --git a/source/gameengine/Converter/KX_IpoConvert.cpp b/source/gameengine/Converter/KX_IpoConvert.cpp index 46c9ef0ef13..56eda51384b 100644 --- a/source/gameengine/Converter/KX_IpoConvert.cpp +++ b/source/gameengine/Converter/KX_IpoConvert.cpp @@ -29,6 +29,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // don't show stl-warnings diff --git a/source/gameengine/Expressions/BoolValue.cpp b/source/gameengine/Expressions/BoolValue.cpp index 544b760f4e9..cadb34d7e8f 100644 --- a/source/gameengine/Expressions/BoolValue.cpp +++ b/source/gameengine/Expressions/BoolValue.cpp @@ -13,13 +13,14 @@ * */ - - #include "BoolValue.h" #include "StringValue.h" #include "ErrorValue.h" #include "VoidValue.h" -//#include "FactoryManager.h" + +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction diff --git a/source/gameengine/Expressions/ConstExpr.cpp b/source/gameengine/Expressions/ConstExpr.cpp index c8b4c311b7c..e33ba091ac4 100644 --- a/source/gameengine/Expressions/ConstExpr.cpp +++ b/source/gameengine/Expressions/ConstExpr.cpp @@ -13,13 +13,13 @@ * */ - - #include "Value.h" // for precompiled header - #include "ConstExpr.h" #include "VectorValue.h" +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction diff --git a/source/gameengine/Expressions/EXP_C-Api.cpp b/source/gameengine/Expressions/EXP_C-Api.cpp index 4d45fd556eb..c5576e99e7d 100644 --- a/source/gameengine/Expressions/EXP_C-Api.cpp +++ b/source/gameengine/Expressions/EXP_C-Api.cpp @@ -36,6 +36,9 @@ #include "ErrorValue.h" #include "InputParser.h" +#ifdef HAVE_CONFIG_H +#include +#endif EXP_ValueHandle EXP_CreateInt(int innie) { diff --git a/source/gameengine/Expressions/EmptyValue.cpp b/source/gameengine/Expressions/EmptyValue.cpp index 25c0b6af5d7..c2b60e590a4 100644 --- a/source/gameengine/Expressions/EmptyValue.cpp +++ b/source/gameengine/Expressions/EmptyValue.cpp @@ -13,9 +13,6 @@ * */ - - - #include "EmptyValue.h" #include "IntValue.h" #include "FloatValue.h" @@ -24,6 +21,9 @@ #include "ListValue.h" #include "VoidValue.h" +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction diff --git a/source/gameengine/Expressions/ErrorValue.cpp b/source/gameengine/Expressions/ErrorValue.cpp index fd1ba7399b3..e52be4c8021 100644 --- a/source/gameengine/Expressions/ErrorValue.cpp +++ b/source/gameengine/Expressions/ErrorValue.cpp @@ -12,13 +12,11 @@ * */ - - - - - #include "ErrorValue.h" +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction @@ -122,4 +120,4 @@ CValue* CErrorValue::GetReplica() assertd(false); return NULL; -} \ No newline at end of file +} diff --git a/source/gameengine/Expressions/Expression.cpp b/source/gameengine/Expressions/Expression.cpp index 5e7950fbcf0..5c5e1abea34 100644 --- a/source/gameengine/Expressions/Expression.cpp +++ b/source/gameengine/Expressions/Expression.cpp @@ -12,11 +12,12 @@ * */ - - #include "Expression.h" #include "ErrorValue.h" -//#include "FactoryManager.h" + +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction diff --git a/source/gameengine/Expressions/FloatValue.cpp b/source/gameengine/Expressions/FloatValue.cpp index 78185bbe163..93f102d04a6 100644 --- a/source/gameengine/Expressions/FloatValue.cpp +++ b/source/gameengine/Expressions/FloatValue.cpp @@ -12,7 +12,6 @@ * */ - #include "FloatValue.h" #include "IntValue.h" #include "StringValue.h" @@ -20,8 +19,9 @@ #include "ErrorValue.h" #include "VoidValue.h" -///#include "..\..\menuvalue.h" -//#include "FactoryManager.h" +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction diff --git a/source/gameengine/Expressions/IdentifierExpr.cpp b/source/gameengine/Expressions/IdentifierExpr.cpp index ff517aa7636..cd7a9b0f186 100644 --- a/source/gameengine/Expressions/IdentifierExpr.cpp +++ b/source/gameengine/Expressions/IdentifierExpr.cpp @@ -31,6 +31,9 @@ #include "IdentifierExpr.h" +#ifdef HAVE_CONFIG_H +#include +#endif CIdentifierExpr::CIdentifierExpr(const STR_String& identifier,CValue* id_context) :m_identifier(identifier) @@ -100,4 +103,4 @@ void CIdentifierExpr::ClearModified() void CIdentifierExpr::BroadcastOperators(VALUE_OPERATOR op) { assertd(false); // not implemented yet -} \ No newline at end of file +} diff --git a/source/gameengine/Expressions/IfExpr.cpp b/source/gameengine/Expressions/IfExpr.cpp index bcb365b87cc..5d3eb3641ca 100644 --- a/source/gameengine/Expressions/IfExpr.cpp +++ b/source/gameengine/Expressions/IfExpr.cpp @@ -16,6 +16,9 @@ #include "EmptyValue.h" #include "ErrorValue.h" +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction @@ -138,4 +141,4 @@ void CIfExpr::BroadcastOperators(VALUE_OPERATOR op) unsigned char CIfExpr::GetExpressionID() { return CIFEXPRESSIONID; -} \ No newline at end of file +} diff --git a/source/gameengine/Expressions/InputParser.cpp b/source/gameengine/Expressions/InputParser.cpp index efb5e277737..090c95e3c07 100644 --- a/source/gameengine/Expressions/InputParser.cpp +++ b/source/gameengine/Expressions/InputParser.cpp @@ -27,6 +27,10 @@ #include "Operator1Expr.h" #include "IdentifierExpr.h" +#ifdef HAVE_CONFIG_H +#include +#endif + // this is disable at the moment, I expected a memleak from it, but the error-cleanup was the reason // well, looks we don't need it anyway, until maybe the Curved Surfaces are integrated into CSG // cool things like (IF(LOD==1,CCurvedValue,IF(LOD==2,CCurvedValue2)) etc... diff --git a/source/gameengine/Expressions/IntValue.cpp b/source/gameengine/Expressions/IntValue.cpp index 591fe76cd48..fbf4f4f59e0 100644 --- a/source/gameengine/Expressions/IntValue.cpp +++ b/source/gameengine/Expressions/IntValue.cpp @@ -12,14 +12,16 @@ * */ - #include "IntValue.h" #include "ErrorValue.h" #include "FloatValue.h" #include "BoolValue.h" #include "StringValue.h" #include "VoidValue.h" -//#include "FactoryManager.h" + +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction @@ -322,4 +324,4 @@ void CIntValue::SetValue(CValue* newval) PyObject* CIntValue::ConvertValueToPython() { return PyInt_FromLong(m_int); -} \ No newline at end of file +} diff --git a/source/gameengine/Expressions/KX_HashedPtr.cpp b/source/gameengine/Expressions/KX_HashedPtr.cpp index 7d573ebc37d..d01ff1626d7 100644 --- a/source/gameengine/Expressions/KX_HashedPtr.cpp +++ b/source/gameengine/Expressions/KX_HashedPtr.cpp @@ -29,9 +29,12 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ - #include "KX_HashedPtr.h" +#ifdef HAVE_CONFIG_H +#include +#endif + unsigned int KX_Hash(unsigned int inDWord) { unsigned int key = inDWord; diff --git a/source/gameengine/Expressions/ListValue.cpp b/source/gameengine/Expressions/ListValue.cpp index 25723350f36..673dda5db2d 100644 --- a/source/gameengine/Expressions/ListValue.cpp +++ b/source/gameengine/Expressions/ListValue.cpp @@ -14,12 +14,15 @@ * */ - #include "ListValue.h" #include "StringValue.h" #include "VoidValue.h" #include +#ifdef HAVE_CONFIG_H +#include +#endif + int listvalue_bufferlen(PyObject* list) { return ( ((CListValue*)list)->GetCount()); @@ -533,4 +536,4 @@ bool CListValue::IsModified() bmod = bmod || GetValue(i)->IsModified(); return bmod; -} \ No newline at end of file +} diff --git a/source/gameengine/Expressions/Operator1Expr.cpp b/source/gameengine/Expressions/Operator1Expr.cpp index 91a3a02aabe..85b3c669802 100644 --- a/source/gameengine/Expressions/Operator1Expr.cpp +++ b/source/gameengine/Expressions/Operator1Expr.cpp @@ -13,8 +13,12 @@ */ #include "Operator1Expr.h" -//#include "FactoryManager.h" #include "EmptyValue.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// diff --git a/source/gameengine/Expressions/Operator2Expr.cpp b/source/gameengine/Expressions/Operator2Expr.cpp index 33223b2ae3d..2bd3f074b0b 100644 --- a/source/gameengine/Expressions/Operator2Expr.cpp +++ b/source/gameengine/Expressions/Operator2Expr.cpp @@ -16,12 +16,14 @@ // have to do the trick // when expression is cached, there will be a call to UpdateCalc() instead of Calc() - - #include "Operator2Expr.h" #include "StringValue.h" #include "VoidValue.h" -//#include "FactoryManager.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// diff --git a/source/gameengine/Expressions/PyObjectPlus.cpp b/source/gameengine/Expressions/PyObjectPlus.cpp index 7b93b1d4daa..f9801fe0f60 100644 --- a/source/gameengine/Expressions/PyObjectPlus.cpp +++ b/source/gameengine/Expressions/PyObjectPlus.cpp @@ -29,6 +29,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifndef NO_EXP_PYTHON_EMBEDDING /*------------------------------ diff --git a/source/gameengine/Expressions/StringValue.cpp b/source/gameengine/Expressions/StringValue.cpp index 7bdb841e1e4..1ef8c5629a0 100644 --- a/source/gameengine/Expressions/StringValue.cpp +++ b/source/gameengine/Expressions/StringValue.cpp @@ -12,13 +12,14 @@ * */ - #include "StringValue.h" #include "BoolValue.h" #include "ErrorValue.h" #include "VoidValue.h" -//#include "FactoryManager.h" +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction diff --git a/source/gameengine/Expressions/Value.cpp b/source/gameengine/Expressions/Value.cpp index e2a7189fb02..97b4f3951b3 100644 --- a/source/gameengine/Expressions/Value.cpp +++ b/source/gameengine/Expressions/Value.cpp @@ -15,7 +15,6 @@ * */ - #include "Value.h" #include "FloatValue.h" #include "IntValue.h" @@ -25,7 +24,9 @@ #include "ErrorValue.h" #include "ListValue.h" -//#include "FactoryManager.h" +#ifdef HAVE_CONFIG_H +#include +#endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction diff --git a/source/gameengine/Expressions/VectorValue.cpp b/source/gameengine/Expressions/VectorValue.cpp index 6aa7926bfa7..bea6902eba8 100644 --- a/source/gameengine/Expressions/VectorValue.cpp +++ b/source/gameengine/Expressions/VectorValue.cpp @@ -12,6 +12,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) #endif diff --git a/source/gameengine/GameLogic/SCA_ANDController.cpp b/source/gameengine/GameLogic/SCA_ANDController.cpp index 3dc20490819..4064bb6c840 100644 --- a/source/gameengine/GameLogic/SCA_ANDController.cpp +++ b/source/gameengine/GameLogic/SCA_ANDController.cpp @@ -37,6 +37,10 @@ #include "SCA_LogicManager.h" #include "BoolValue.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/GameLogic/SCA_AlwaysEventManager.cpp b/source/gameengine/GameLogic/SCA_AlwaysEventManager.cpp index 0e2db162ec3..41b9e45df53 100644 --- a/source/gameengine/GameLogic/SCA_AlwaysEventManager.cpp +++ b/source/gameengine/GameLogic/SCA_AlwaysEventManager.cpp @@ -38,9 +38,11 @@ #include #include "SCA_ISensor.h" -using namespace std; - +#ifdef HAVE_CONFIG_H +#include +#endif +using namespace std; SCA_AlwaysEventManager::SCA_AlwaysEventManager(class SCA_LogicManager* logicmgr) : m_logicmgr(logicmgr), diff --git a/source/gameengine/GameLogic/SCA_AlwaysSensor.cpp b/source/gameengine/GameLogic/SCA_AlwaysSensor.cpp index cf78d109e16..1ca8545b062 100644 --- a/source/gameengine/GameLogic/SCA_AlwaysSensor.cpp +++ b/source/gameengine/GameLogic/SCA_AlwaysSensor.cpp @@ -32,6 +32,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. // It can occasionally cause DevStudio to have internal compiler warnings. diff --git a/source/gameengine/GameLogic/SCA_EventManager.cpp b/source/gameengine/GameLogic/SCA_EventManager.cpp index a6ce3a1af25..468d9a8c381 100644 --- a/source/gameengine/GameLogic/SCA_EventManager.cpp +++ b/source/gameengine/GameLogic/SCA_EventManager.cpp @@ -29,10 +29,11 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ - #include "SCA_EventManager.h" - +#ifdef HAVE_CONFIG_H +#include +#endif SCA_EventManager::SCA_EventManager(EVENT_MANAGER_TYPE mgrtype) :m_mgrtype(mgrtype) diff --git a/source/gameengine/GameLogic/SCA_ExpressionController.cpp b/source/gameengine/GameLogic/SCA_ExpressionController.cpp index 56934a695f2..36e83f2a98c 100644 --- a/source/gameengine/GameLogic/SCA_ExpressionController.cpp +++ b/source/gameengine/GameLogic/SCA_ExpressionController.cpp @@ -32,15 +32,18 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ - #include "SCA_ExpressionController.h" #include "SCA_ISensor.h" #include "SCA_LogicManager.h" #include "BoolValue.h" #include "InputParser.h" - #include "MT_Transform.h" // for fuzzyZero +#ifdef HAVE_CONFIG_H +#include +#endif + + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/GameLogic/SCA_IActuator.cpp b/source/gameengine/GameLogic/SCA_IActuator.cpp index 81efeb6e647..31e6d3fdb10 100644 --- a/source/gameengine/GameLogic/SCA_IActuator.cpp +++ b/source/gameengine/GameLogic/SCA_IActuator.cpp @@ -31,6 +31,9 @@ #include "SCA_IActuator.h" +#ifdef HAVE_CONFIG_H +#include +#endif using namespace std; diff --git a/source/gameengine/GameLogic/SCA_IController.cpp b/source/gameengine/GameLogic/SCA_IController.cpp index 78f1980afde..bd70e4aa44b 100644 --- a/source/gameengine/GameLogic/SCA_IController.cpp +++ b/source/gameengine/GameLogic/SCA_IController.cpp @@ -30,10 +30,13 @@ */ #include "SCA_IController.h" - #include "SCA_LogicManager.h" #include "SCA_IActuator.h" +#ifdef HAVE_CONFIG_H +#include +#endif + SCA_IController::SCA_IController(SCA_IObject* gameobj, PyTypeObject* T) : diff --git a/source/gameengine/GameLogic/SCA_IInputDevice.cpp b/source/gameengine/GameLogic/SCA_IInputDevice.cpp index 75a78fe5871..d73549b8818 100644 --- a/source/gameengine/GameLogic/SCA_IInputDevice.cpp +++ b/source/gameengine/GameLogic/SCA_IInputDevice.cpp @@ -30,10 +30,11 @@ */ #include - #include "SCA_IInputDevice.h" - +#ifdef HAVE_CONFIG_H +#include +#endif SCA_IInputDevice::SCA_IInputDevice() : diff --git a/source/gameengine/GameLogic/SCA_ILogicBrick.cpp b/source/gameengine/GameLogic/SCA_ILogicBrick.cpp index ce90a17fe0d..38fc75d7ad9 100644 --- a/source/gameengine/GameLogic/SCA_ILogicBrick.cpp +++ b/source/gameengine/GameLogic/SCA_ILogicBrick.cpp @@ -31,7 +31,9 @@ #include "SCA_ILogicBrick.h" - +#ifdef HAVE_CONFIG_H +#include +#endif SCA_LogicManager* SCA_ILogicBrick::m_sCurrentLogicManager = NULL; diff --git a/source/gameengine/GameLogic/SCA_IObject.cpp b/source/gameengine/GameLogic/SCA_IObject.cpp index 012479ba2d3..47a81f35896 100644 --- a/source/gameengine/GameLogic/SCA_IObject.cpp +++ b/source/gameengine/GameLogic/SCA_IObject.cpp @@ -29,15 +29,18 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ - #include "SCA_IObject.h" #include "SCA_ISensor.h" #include "SCA_IController.h" #include "SCA_IActuator.h" #include "MT_Point3.h" - #include "ListValue.h" +#ifdef HAVE_CONFIG_H +#include +#endif + + MT_Point3 SCA_IObject::m_sDummy=MT_Point3(0,0,0); SCA_IObject::SCA_IObject(PyTypeObject* T): CValue(T) diff --git a/source/gameengine/GameLogic/SCA_IScene.cpp b/source/gameengine/GameLogic/SCA_IScene.cpp index e9ed8232824..d4463196379 100644 --- a/source/gameengine/GameLogic/SCA_IScene.cpp +++ b/source/gameengine/GameLogic/SCA_IScene.cpp @@ -31,7 +31,9 @@ #include "SCA_IScene.h" - +#ifdef HAVE_CONFIG_H +#include +#endif SCA_IScene::SCA_IScene() { diff --git a/source/gameengine/GameLogic/SCA_ISensor.cpp b/source/gameengine/GameLogic/SCA_ISensor.cpp index be26f1d503e..b95c42b0bae 100644 --- a/source/gameengine/GameLogic/SCA_ISensor.cpp +++ b/source/gameengine/GameLogic/SCA_ISensor.cpp @@ -36,9 +36,11 @@ #include "SCA_EventManager.h" #include "SCA_LogicManager.h" -/* Native functions */ - +#ifdef HAVE_CONFIG_H +#include +#endif +/* Native functions */ void SCA_ISensor::ReParent(SCA_IObject* parent) { SCA_ILogicBrick::ReParent(parent); diff --git a/source/gameengine/GameLogic/SCA_KeyboardManager.cpp b/source/gameengine/GameLogic/SCA_KeyboardManager.cpp index 46223aa11af..79dbdbe0dc6 100644 --- a/source/gameengine/GameLogic/SCA_KeyboardManager.cpp +++ b/source/gameengine/GameLogic/SCA_KeyboardManager.cpp @@ -39,6 +39,10 @@ #include "IntValue.h" #include +#ifdef HAVE_CONFIG_H +#include +#endif + SCA_KeyboardManager::SCA_KeyboardManager(SCA_LogicManager* logicmgr, SCA_IInputDevice* inputdev) : SCA_EventManager(KEYBOARD_EVENTMGR), diff --git a/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp b/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp index 834c9254cc0..0352d5d7c67 100644 --- a/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp +++ b/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp @@ -36,7 +36,9 @@ #include "StringValue.h" #include "SCA_IInputDevice.h" - +#ifdef HAVE_CONFIG_H +#include +#endif /* ------------------------------------------------------------------------- */ /* Native functions */ diff --git a/source/gameengine/GameLogic/SCA_LogicManager.cpp b/source/gameengine/GameLogic/SCA_LogicManager.cpp index a29d6d19729..f33b73199ce 100644 --- a/source/gameengine/GameLogic/SCA_LogicManager.cpp +++ b/source/gameengine/GameLogic/SCA_LogicManager.cpp @@ -32,14 +32,16 @@ */ #include "Value.h" #include "SCA_LogicManager.h" - #include "SCA_ISensor.h" #include "SCA_IController.h" #include "SCA_IActuator.h" #include "SCA_EventManager.h" - #include +#ifdef HAVE_CONFIG_H +#include +#endif + SCA_LogicManager::SCA_LogicManager() { } diff --git a/source/gameengine/GameLogic/SCA_MouseManager.cpp b/source/gameengine/GameLogic/SCA_MouseManager.cpp index 580c77ee61f..8d968e0e54d 100644 --- a/source/gameengine/GameLogic/SCA_MouseManager.cpp +++ b/source/gameengine/GameLogic/SCA_MouseManager.cpp @@ -33,6 +33,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. // It can occasionally cause DevStudio to have internal compiler warnings. diff --git a/source/gameengine/GameLogic/SCA_MouseSensor.cpp b/source/gameengine/GameLogic/SCA_MouseSensor.cpp index f21e4c1b07e..2c4b7d87c30 100644 --- a/source/gameengine/GameLogic/SCA_MouseSensor.cpp +++ b/source/gameengine/GameLogic/SCA_MouseSensor.cpp @@ -41,6 +41,10 @@ #include "ConstExpr.h" #include +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/GameLogic/SCA_ORController.cpp b/source/gameengine/GameLogic/SCA_ORController.cpp index 966884da809..773b66be637 100644 --- a/source/gameengine/GameLogic/SCA_ORController.cpp +++ b/source/gameengine/GameLogic/SCA_ORController.cpp @@ -37,6 +37,10 @@ #include "SCA_LogicManager.h" #include "BoolValue.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/GameLogic/SCA_PropertyActuator.cpp b/source/gameengine/GameLogic/SCA_PropertyActuator.cpp index 893db892ef0..dfb6e3f644b 100644 --- a/source/gameengine/GameLogic/SCA_PropertyActuator.cpp +++ b/source/gameengine/GameLogic/SCA_PropertyActuator.cpp @@ -34,10 +34,13 @@ #include "SCA_PropertyActuator.h" #include "InputParser.h" - #include "Operator2Expr.h" #include "ConstExpr.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/GameLogic/SCA_PropertyEventManager.cpp b/source/gameengine/GameLogic/SCA_PropertyEventManager.cpp index 2b3ad1d2c1c..4b81b0e4124 100644 --- a/source/gameengine/GameLogic/SCA_PropertyEventManager.cpp +++ b/source/gameengine/GameLogic/SCA_PropertyEventManager.cpp @@ -30,9 +30,11 @@ */ #include "SCA_ISensor.h" - #include "SCA_PropertyEventManager.h" +#ifdef HAVE_CONFIG_H +#include +#endif SCA_PropertyEventManager::SCA_PropertyEventManager(class SCA_LogicManager* logicmgr) diff --git a/source/gameengine/GameLogic/SCA_PropertySensor.cpp b/source/gameengine/GameLogic/SCA_PropertySensor.cpp index 52642c6757f..6fceddcb5f8 100644 --- a/source/gameengine/GameLogic/SCA_PropertySensor.cpp +++ b/source/gameengine/GameLogic/SCA_PropertySensor.cpp @@ -41,6 +41,10 @@ #include "SCA_EventManager.h" #include "SCA_LogicManager.h" +#ifdef HAVE_CONFIG_H +#include +#endif + SCA_PropertySensor::SCA_PropertySensor(SCA_EventManager* eventmgr, SCA_IObject* gameobj, const STR_String& propname, diff --git a/source/gameengine/GameLogic/SCA_PythonController.cpp b/source/gameengine/GameLogic/SCA_PythonController.cpp index 2d57a5f116d..0d2f74c14cc 100644 --- a/source/gameengine/GameLogic/SCA_PythonController.cpp +++ b/source/gameengine/GameLogic/SCA_PythonController.cpp @@ -39,6 +39,9 @@ #include "compile.h" #include "eval.h" +#ifdef HAVE_CONFIG_H +#include +#endif // initialize static member variables SCA_PythonController* SCA_PythonController::m_sCurrentController = NULL; diff --git a/source/gameengine/GameLogic/SCA_RandomActuator.cpp b/source/gameengine/GameLogic/SCA_RandomActuator.cpp index 50acf24251f..350b2f58b06 100644 --- a/source/gameengine/GameLogic/SCA_RandomActuator.cpp +++ b/source/gameengine/GameLogic/SCA_RandomActuator.cpp @@ -38,8 +38,12 @@ #include "SCA_IActuator.h" #include "SCA_RandomActuator.h" #include "math.h" - #include "MT_Transform.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/GameLogic/SCA_RandomEventManager.cpp b/source/gameengine/GameLogic/SCA_RandomEventManager.cpp index 12cf78d234a..ee517e5b915 100644 --- a/source/gameengine/GameLogic/SCA_RandomEventManager.cpp +++ b/source/gameengine/GameLogic/SCA_RandomEventManager.cpp @@ -40,6 +40,10 @@ using namespace std; #include #include +#ifdef HAVE_CONFIG_H +#include +#endif + SCA_RandomEventManager::SCA_RandomEventManager(class SCA_LogicManager* logicmgr) : m_logicmgr(logicmgr), SCA_EventManager(RANDOM_EVENTMGR) diff --git a/source/gameengine/GameLogic/SCA_RandomNumberGenerator.cpp b/source/gameengine/GameLogic/SCA_RandomNumberGenerator.cpp index 7faa76fd01d..a25ac4089f9 100644 --- a/source/gameengine/GameLogic/SCA_RandomNumberGenerator.cpp +++ b/source/gameengine/GameLogic/SCA_RandomNumberGenerator.cpp @@ -37,6 +37,10 @@ #include #include "SCA_RandomNumberGenerator.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* Period parameters */ #define N 624 #define M 397 diff --git a/source/gameengine/GameLogic/SCA_RandomSensor.cpp b/source/gameengine/GameLogic/SCA_RandomSensor.cpp index 7f3f2f93315..12f3e0bf5ed 100644 --- a/source/gameengine/GameLogic/SCA_RandomSensor.cpp +++ b/source/gameengine/GameLogic/SCA_RandomSensor.cpp @@ -39,6 +39,10 @@ #include "ConstExpr.h" #include +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/GameLogic/SCA_TimeEventManager.cpp b/source/gameengine/GameLogic/SCA_TimeEventManager.cpp index 784afcce298..05d1bebf18a 100644 --- a/source/gameengine/GameLogic/SCA_TimeEventManager.cpp +++ b/source/gameengine/GameLogic/SCA_TimeEventManager.cpp @@ -29,6 +29,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. diff --git a/source/gameengine/GamePlayer/common/GPC_Canvas.cpp b/source/gameengine/GamePlayer/common/GPC_Canvas.cpp index 4e59863f510..df2722afa68 100644 --- a/source/gameengine/GamePlayer/common/GPC_Canvas.cpp +++ b/source/gameengine/GamePlayer/common/GPC_Canvas.cpp @@ -30,6 +30,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #include #endif diff --git a/source/gameengine/GamePlayer/common/GPC_Engine.cpp b/source/gameengine/GamePlayer/common/GPC_Engine.cpp index 8c54362e17a..a9a099bf070 100644 --- a/source/gameengine/GamePlayer/common/GPC_Engine.cpp +++ b/source/gameengine/GamePlayer/common/GPC_Engine.cpp @@ -29,6 +29,11 @@ * * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ + +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) // suppress stl-MSVC debug info warning #endif // WIN32 diff --git a/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp b/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp index 7cd1e48f9b3..71e20bfe35d 100644 --- a/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp +++ b/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp @@ -33,6 +33,9 @@ #include #include "GPC_KeyboardDevice.h" +#ifdef HAVE_CONFIG_H +#include +#endif /** * NextFrame toggles currentTable with previousTable, diff --git a/source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp b/source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp index a6ce7b3ae0d..bfd1acaf65d 100644 --- a/source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp +++ b/source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp @@ -32,6 +32,9 @@ #include "GPC_MouseDevice.h" +#ifdef HAVE_CONFIG_H +#include +#endif GPC_MouseDevice::GPC_MouseDevice() { diff --git a/source/gameengine/GamePlayer/common/GPC_PolygonMaterial.cpp b/source/gameengine/GamePlayer/common/GPC_PolygonMaterial.cpp index 77488597a70..2741ba048c8 100644 --- a/source/gameengine/GamePlayer/common/GPC_PolygonMaterial.cpp +++ b/source/gameengine/GamePlayer/common/GPC_PolygonMaterial.cpp @@ -30,10 +30,12 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ -#include "GPC_PolygonMaterial.h" +#ifdef HAVE_CONFIG_H +#include +#endif +#include "GPC_PolygonMaterial.h" #include "MT_Vector3.h" - #include "RAS_IRasterizer.h" /* This list includes only data type definitions */ diff --git a/source/gameengine/GamePlayer/common/GPC_RawImage.cpp b/source/gameengine/GamePlayer/common/GPC_RawImage.cpp index 0a4b6ff3df6..7d0886a292b 100644 --- a/source/gameengine/GamePlayer/common/GPC_RawImage.cpp +++ b/source/gameengine/GamePlayer/common/GPC_RawImage.cpp @@ -34,9 +34,12 @@ #include #include "GPC_RawImage.h" - #include "GPC_RawLogoArrays.h" +#ifdef HAVE_CONFIG_H +#include +#endif + GPC_RawImage::GPC_RawImage() : m_data(0), m_dataSize(0), m_width(0), m_height(0) diff --git a/source/gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp b/source/gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp index 6ab2f1220e5..2ccd98b368a 100644 --- a/source/gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp +++ b/source/gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp @@ -31,10 +31,11 @@ // This file is automatically generated. Do not edit by hand! - - #include "GPC_RawLoadDotBlendArray.h" +#ifdef HAVE_CONFIG_H +#include +#endif void GetRawLoadingAnimation(unsigned char **data, int *dataSize) { diff --git a/source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp b/source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp index 0afb241408e..955a644513a 100644 --- a/source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp +++ b/source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp @@ -31,10 +31,11 @@ // This file is automatically generated. Do not edit by hand! - - #include "GPC_RawLogoArrays.h" +#ifdef HAVE_CONFIG_H +#include +#endif void GetRawBlenderLogo(unsigned char **data, int *width, int *height) { diff --git a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp index 329cf1c4bad..12212cfd182 100644 --- a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp +++ b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp @@ -30,6 +30,9 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif #ifdef WIN32 #pragma warning (disable : 4786) diff --git a/source/gameengine/GamePlayer/common/GPC_System.cpp b/source/gameengine/GamePlayer/common/GPC_System.cpp index 7c5c16a0b48..31393505796 100644 --- a/source/gameengine/GamePlayer/common/GPC_System.cpp +++ b/source/gameengine/GamePlayer/common/GPC_System.cpp @@ -35,6 +35,9 @@ #include "GPC_KeyboardDevice.h" #include "NG_NetworkDeviceInterface.h" +#ifdef HAVE_CONFIG_H +#include +#endif GPC_System::GPC_System() // : m_ndi(0) @@ -87,4 +90,4 @@ NG_NetworkDeviceInterface* GPC_System::GetNetworkDevice() const { return m_ndi; } -*/ \ No newline at end of file +*/ diff --git a/source/gameengine/GamePlayer/common/bmfont.cpp b/source/gameengine/GamePlayer/common/bmfont.cpp index 752f2017c94..c98c85bc272 100644 --- a/source/gameengine/GamePlayer/common/bmfont.cpp +++ b/source/gameengine/GamePlayer/common/bmfont.cpp @@ -61,6 +61,10 @@ #include "BKE_bmfont.h" #include "BKE_bmfont_types.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /*MAART: void printfGlyph(bmGlyph * glyph) { diff --git a/source/gameengine/GamePlayer/common/unix/GPU_Canvas.cpp b/source/gameengine/GamePlayer/common/unix/GPU_Canvas.cpp index 29f0bffe1c5..d393f4196aa 100644 --- a/source/gameengine/GamePlayer/common/unix/GPU_Canvas.cpp +++ b/source/gameengine/GamePlayer/common/unix/GPU_Canvas.cpp @@ -31,9 +31,12 @@ */ //#include - #include "GPU_Canvas.h" +#ifdef HAVE_CONFIG_H +#include +#endif + GPU_Canvas::GPU_Canvas(KXH_plugin_handle p, int width, int height) : GPC_Canvas(width, height), m_plugin(p) { diff --git a/source/gameengine/GamePlayer/common/unix/GPU_Engine.cpp b/source/gameengine/GamePlayer/common/unix/GPU_Engine.cpp index 56b1340eb92..6bff9f20a6a 100644 --- a/source/gameengine/GamePlayer/common/unix/GPU_Engine.cpp +++ b/source/gameengine/GamePlayer/common/unix/GPU_Engine.cpp @@ -32,11 +32,8 @@ #include #include - #include "GPU_Engine.h" - #include "GPC_MouseDevice.h" - #include "GPU_Canvas.h" #include "GPU_KeyboardDevice.h" #include "GPU_System.h" @@ -56,6 +53,9 @@ #include "GPC_RenderTools.h" #include "GPC_RawImage.h" +#ifdef HAVE_CONFIG_H +#include +#endif void Redraw(GPU_Engine *engine); // -the- redraw function diff --git a/source/gameengine/GamePlayer/common/unix/GPU_KeyboardDevice.cpp b/source/gameengine/GamePlayer/common/unix/GPU_KeyboardDevice.cpp index 125adcc4b7b..bdd04fadb9b 100644 --- a/source/gameengine/GamePlayer/common/unix/GPU_KeyboardDevice.cpp +++ b/source/gameengine/GamePlayer/common/unix/GPU_KeyboardDevice.cpp @@ -32,6 +32,10 @@ #include #include "GPU_KeyboardDevice.h" +#ifdef HAVE_CONFIG_H +#include +#endif + void GPU_KeyboardDevice::register_X_key_down_event(KeySym k) { ConvertEvent(k, 1); diff --git a/source/gameengine/GamePlayer/common/unix/GPU_System.cpp b/source/gameengine/GamePlayer/common/unix/GPU_System.cpp index d7484c97dc2..eb2163f08bc 100644 --- a/source/gameengine/GamePlayer/common/unix/GPU_System.cpp +++ b/source/gameengine/GamePlayer/common/unix/GPU_System.cpp @@ -31,9 +31,11 @@ */ #include - #include "GPU_System.h" +#ifdef HAVE_CONFIG_H +#include +#endif static struct timeval startTime; static int startTimeDone = 0; diff --git a/source/gameengine/GamePlayer/common/windows/GPW_Canvas.cpp b/source/gameengine/GamePlayer/common/windows/GPW_Canvas.cpp index de3f49e867e..372ab927118 100644 --- a/source/gameengine/GamePlayer/common/windows/GPW_Canvas.cpp +++ b/source/gameengine/GamePlayer/common/windows/GPW_Canvas.cpp @@ -32,6 +32,10 @@ #include "GPW_Canvas.h" +#ifdef HAVE_CONFIG_H +#include +#endif + GPW_Canvas::GPW_Canvas(HWND hWnd, HDC hDC, int width, int height) : GPC_Canvas(width, height), m_hWnd(hWnd), m_hRC(0), m_hDC(hDC) { diff --git a/source/gameengine/GamePlayer/common/windows/GPW_Engine.cpp b/source/gameengine/GamePlayer/common/windows/GPW_Engine.cpp index ff4dca9c50e..43d2ca9bb6e 100644 --- a/source/gameengine/GamePlayer/common/windows/GPW_Engine.cpp +++ b/source/gameengine/GamePlayer/common/windows/GPW_Engine.cpp @@ -48,6 +48,9 @@ #include "NG_NetworkScene.h" #include "NG_LoopBackNetworkDeviceInterface.h" +#ifdef HAVE_CONFIG_H +#include +#endif GPW_Engine::GPW_Engine(char *customLoadingAnimationURL, int foregroundColor, int backgroundColor, int frameRate) : diff --git a/source/gameengine/GamePlayer/common/windows/GPW_KeyboardDevice.cpp b/source/gameengine/GamePlayer/common/windows/GPW_KeyboardDevice.cpp index b9c884af525..e9d70722336 100644 --- a/source/gameengine/GamePlayer/common/windows/GPW_KeyboardDevice.cpp +++ b/source/gameengine/GamePlayer/common/windows/GPW_KeyboardDevice.cpp @@ -32,6 +32,9 @@ #include "GPW_KeyboardDevice.h" +#ifdef HAVE_CONFIG_H +#include +#endif // Key code values not found in winuser.h #ifndef VK_MINUS diff --git a/source/gameengine/GamePlayer/common/windows/GPW_System.cpp b/source/gameengine/GamePlayer/common/windows/GPW_System.cpp index ba71e036fc4..9dbd704daed 100644 --- a/source/gameengine/GamePlayer/common/windows/GPW_System.cpp +++ b/source/gameengine/GamePlayer/common/windows/GPW_System.cpp @@ -32,9 +32,11 @@ */ #include - #include "GPW_System.h" +#ifdef HAVE_CONFIG_H +#include +#endif GPW_System::GPW_System(void) { diff --git a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp index 07ed803b205..17e9e77b5d3 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp @@ -31,6 +31,10 @@ * GHOST Blender Player application implementation file. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) // suppress stl-MSVC debug info warning #endif diff --git a/source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp b/source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp index da71d40acc0..2d378473619 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp @@ -31,11 +31,12 @@ */ #include "GPG_Canvas.h" - #include - #include "GHOST_ISystem.h" +#ifdef HAVE_CONFIG_H +#include +#endif GPG_Canvas::GPG_Canvas(GHOST_IWindow* window) : GPC_Canvas(0, 0), m_window(window) diff --git a/source/gameengine/GamePlayer/ghost/GPG_KeyboardDevice.cpp b/source/gameengine/GamePlayer/ghost/GPG_KeyboardDevice.cpp index 7971a86bcbc..0e474827ad5 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_KeyboardDevice.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_KeyboardDevice.cpp @@ -31,9 +31,11 @@ * GHOST Blender Player keyboard device implementation. */ - #include "GPG_KeyboardDevice.h" +#ifdef HAVE_CONFIG_H +#include +#endif GPG_KeyboardDevice::GPG_KeyboardDevice(void) { diff --git a/source/gameengine/GamePlayer/ghost/GPG_System.cpp b/source/gameengine/GamePlayer/ghost/GPG_System.cpp index 6084505bbba..d9f59f8b36a 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_System.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_System.cpp @@ -32,11 +32,12 @@ */ #include "GPG_System.h" - #include - #include "GHOST_ISystem.h" +#ifdef HAVE_CONFIG_H +#include +#endif GPG_System::GPG_System(GHOST_ISystem* system) : m_system(system) diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index df683cb91cf..f725d5c0dd3 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -34,6 +34,10 @@ #include #include +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef __linux__ #ifdef __alpha__ #include diff --git a/source/gameengine/Ketsji/KXNetwork/KX_NetworkEventManager.cpp b/source/gameengine/Ketsji/KXNetwork/KX_NetworkEventManager.cpp index 99aa798cfa5..ad2f786a328 100644 --- a/source/gameengine/Ketsji/KXNetwork/KX_NetworkEventManager.cpp +++ b/source/gameengine/Ketsji/KXNetwork/KX_NetworkEventManager.cpp @@ -42,6 +42,10 @@ #include "NG_NetworkMessage.h" #include "NG_NetworkObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif + KX_NetworkEventManager::KX_NetworkEventManager(class SCA_LogicManager* logicmgr, class NG_NetworkDeviceInterface *ndi) : SCA_EventManager(NETWORK_EVENTMGR), m_logicmgr(logicmgr), m_ndi(ndi) diff --git a/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.cpp b/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.cpp index 1eb85d60b29..aed6b6a97a1 100644 --- a/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.cpp +++ b/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.cpp @@ -34,6 +34,10 @@ #include "NG_NetworkScene.h" #include "KX_NetworkMessageActuator.h" +#ifdef HAVE_CONFIG_H +#include +#endif + KX_NetworkMessageActuator::KX_NetworkMessageActuator( SCA_IObject* gameobj, // the actuator controlling object NG_NetworkScene* networkscene, // needed for replication diff --git a/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp b/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp index 1eeceb55469..7e1e46d029a 100644 --- a/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp +++ b/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp @@ -41,6 +41,10 @@ #include "ListValue.h" #include "StringValue.h" +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef NAN_NET_DEBUG #include #endif diff --git a/source/gameengine/Ketsji/KXNetwork/KX_NetworkObjectActuator.cpp b/source/gameengine/Ketsji/KXNetwork/KX_NetworkObjectActuator.cpp index a7800aea8c8..a27ac01d5c4 100644 --- a/source/gameengine/Ketsji/KXNetwork/KX_NetworkObjectActuator.cpp +++ b/source/gameengine/Ketsji/KXNetwork/KX_NetworkObjectActuator.cpp @@ -29,3 +29,7 @@ * * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + diff --git a/source/gameengine/Ketsji/KXNetwork/KX_NetworkObjectSensor.cpp b/source/gameengine/Ketsji/KXNetwork/KX_NetworkObjectSensor.cpp index a7800aea8c8..9da25bcb70b 100644 --- a/source/gameengine/Ketsji/KXNetwork/KX_NetworkObjectSensor.cpp +++ b/source/gameengine/Ketsji/KXNetwork/KX_NetworkObjectSensor.cpp @@ -29,3 +29,8 @@ * * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ + +#ifdef HAVE_CONFIG_H +#include +#endif + diff --git a/source/gameengine/Ketsji/KX_CDActuator.cpp b/source/gameengine/Ketsji/KX_CDActuator.cpp index e69e0e98960..b422585957e 100644 --- a/source/gameengine/Ketsji/KX_CDActuator.cpp +++ b/source/gameengine/Ketsji/KX_CDActuator.cpp @@ -39,6 +39,10 @@ #include "SND_Scene.h" // needed for replication #include +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ @@ -249,4 +253,4 @@ PyObject* KX_CDActuator::PyGetGain(PyObject* self, PyObject* args, PyObject* kwd PyObject* result = PyFloat_FromDouble(gain); return result; -} \ No newline at end of file +} diff --git a/source/gameengine/Ketsji/KX_Camera.cpp b/source/gameengine/Ketsji/KX_Camera.cpp index 919355d411a..6b669bcd936 100644 --- a/source/gameengine/Ketsji/KX_Camera.cpp +++ b/source/gameengine/Ketsji/KX_Camera.cpp @@ -33,6 +33,10 @@ #include "KX_Camera.h" +#ifdef HAVE_CONFIG_H +#include +#endif + KX_Camera::KX_Camera(void* sgReplicationInfo, SG_Callbacks callbacks, const RAS_CameraData& camdata) diff --git a/source/gameengine/Ketsji/KX_CameraActuator.cpp b/source/gameengine/Ketsji/KX_CameraActuator.cpp index 8a6ed0106f5..df61aaf5243 100644 --- a/source/gameengine/Ketsji/KX_CameraActuator.cpp +++ b/source/gameengine/Ketsji/KX_CameraActuator.cpp @@ -41,6 +41,10 @@ STR_String KX_CameraActuator::X_AXIS_STRING = "x"; STR_String KX_CameraActuator::Y_AXIS_STRING = "y"; +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ diff --git a/source/gameengine/Ketsji/KX_CameraIpoSGController.cpp b/source/gameengine/Ketsji/KX_CameraIpoSGController.cpp index 2e736864a44..19f17ff32ed 100644 --- a/source/gameengine/Ketsji/KX_CameraIpoSGController.cpp +++ b/source/gameengine/Ketsji/KX_CameraIpoSGController.cpp @@ -30,12 +30,13 @@ */ #include "KX_CameraIpoSGController.h" - #include "KX_ScalarInterpolator.h" #include "KX_Camera.h" - #include "RAS_CameraData.h" +#ifdef HAVE_CONFIG_H +#include +#endif bool KX_CameraIpoSGController::Update(double currentTime) { diff --git a/source/gameengine/Ketsji/KX_ConstraintActuator.cpp b/source/gameengine/Ketsji/KX_ConstraintActuator.cpp index 8aab3e7648d..e91c82cc811 100644 --- a/source/gameengine/Ketsji/KX_ConstraintActuator.cpp +++ b/source/gameengine/Ketsji/KX_ConstraintActuator.cpp @@ -38,6 +38,11 @@ #include "MT_Point3.h" #include "MT_Matrix3x3.h" #include "KX_GameObject.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/Ketsji/KX_ConstraintWrapper.cpp b/source/gameengine/Ketsji/KX_ConstraintWrapper.cpp index 0a741aa55ac..04bec5cb37c 100644 --- a/source/gameengine/Ketsji/KX_ConstraintWrapper.cpp +++ b/source/gameengine/Ketsji/KX_ConstraintWrapper.cpp @@ -30,10 +30,13 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ #include - #include "KX_ConstraintWrapper.h" #include "PHY_IPhysicsEnvironment.h" +#ifdef HAVE_CONFIG_H +#include +#endif + KX_ConstraintWrapper::KX_ConstraintWrapper( PHY_ConstraintType ctype, int constraintId, diff --git a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp index 97828b618f8..a6e7daadb2c 100644 --- a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp +++ b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp @@ -48,6 +48,11 @@ #include "PHY_Pro.h" #include "KX_MotionState.h" // bridge between motionstate and scenegraph node + +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef USE_ODE #include "KX_OdePhysicsController.h" diff --git a/source/gameengine/Ketsji/KX_EmptyObject.cpp b/source/gameengine/Ketsji/KX_EmptyObject.cpp index d3b120066d9..8a72ba62f51 100644 --- a/source/gameengine/Ketsji/KX_EmptyObject.cpp +++ b/source/gameengine/Ketsji/KX_EmptyObject.cpp @@ -30,3 +30,8 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ #include "KX_EmptyObject.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + diff --git a/source/gameengine/Ketsji/KX_GameActuator.cpp b/source/gameengine/Ketsji/KX_GameActuator.cpp index 240cef164a3..b3e50359224 100644 --- a/source/gameengine/Ketsji/KX_GameActuator.cpp +++ b/source/gameengine/Ketsji/KX_GameActuator.cpp @@ -38,6 +38,10 @@ #include "KX_Scene.h" #include "KX_KetsjiEngine.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 1f8b3a8e1ac..24f0a36b152 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -31,6 +31,10 @@ * Game object wrapper */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. // It can occasionally cause DevStudio to have internal compiler warnings. diff --git a/source/gameengine/Ketsji/KX_IPO_SGController.cpp b/source/gameengine/Ketsji/KX_IPO_SGController.cpp index ea5617b017a..8dfced41c1e 100644 --- a/source/gameengine/Ketsji/KX_IPO_SGController.cpp +++ b/source/gameengine/Ketsji/KX_IPO_SGController.cpp @@ -31,6 +31,10 @@ * Scenegraph controller for ipos. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. // It can occasionally cause DevStudio to have internal compiler warnings. diff --git a/source/gameengine/Ketsji/KX_IPhysicsController.cpp b/source/gameengine/Ketsji/KX_IPhysicsController.cpp index 5ef22dd4f74..fe43261c0be 100644 --- a/source/gameengine/Ketsji/KX_IPhysicsController.cpp +++ b/source/gameengine/Ketsji/KX_IPhysicsController.cpp @@ -31,6 +31,9 @@ */ #include "KX_IPhysicsController.h" +#ifdef HAVE_CONFIG_H +#include +#endif KX_IPhysicsController::KX_IPhysicsController(bool dyna,void* userdata) diff --git a/source/gameengine/Ketsji/KX_IpoActuator.cpp b/source/gameengine/Ketsji/KX_IpoActuator.cpp index 1e351834822..de2b31684e0 100644 --- a/source/gameengine/Ketsji/KX_IpoActuator.cpp +++ b/source/gameengine/Ketsji/KX_IpoActuator.cpp @@ -35,6 +35,9 @@ #include "KX_IpoActuator.h" #include "KX_GameObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif /* ------------------------------------------------------------------------- */ /* Type strings */ diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp index c03e4e3d964..80a4d13c916 100644 --- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp +++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp @@ -30,6 +30,11 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** * The engine ties all game modules together. */ + +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable : 4786) #endif //WIN32 diff --git a/source/gameengine/Ketsji/KX_Light.cpp b/source/gameengine/Ketsji/KX_Light.cpp index 25e756ae66c..658f45a49b0 100644 --- a/source/gameengine/Ketsji/KX_Light.cpp +++ b/source/gameengine/Ketsji/KX_Light.cpp @@ -29,6 +29,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable : 4786) diff --git a/source/gameengine/Ketsji/KX_LightIpoSGController.cpp b/source/gameengine/Ketsji/KX_LightIpoSGController.cpp index 3dd26947a79..e1bb3329ca8 100644 --- a/source/gameengine/Ketsji/KX_LightIpoSGController.cpp +++ b/source/gameengine/Ketsji/KX_LightIpoSGController.cpp @@ -30,12 +30,13 @@ */ #include "KX_LightIpoSGController.h" - #include "KX_ScalarInterpolator.h" #include "KX_Light.h" - #include "RAS_LightObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif bool KX_LightIpoSGController::Update(double currentTime) { diff --git a/source/gameengine/Ketsji/KX_MeshProxy.cpp b/source/gameengine/Ketsji/KX_MeshProxy.cpp index f17e5820d52..4b5580ed438 100644 --- a/source/gameengine/Ketsji/KX_MeshProxy.cpp +++ b/source/gameengine/Ketsji/KX_MeshProxy.cpp @@ -30,11 +30,13 @@ */ #include "KX_MeshProxy.h" - #include "RAS_IPolygonMaterial.h" #include "RAS_MeshObject.h" #include "KX_VertexProxy.h" +#ifdef HAVE_CONFIG_H +#include +#endif PyTypeObject KX_MeshProxy::Type = { PyObject_HEAD_INIT(&PyType_Type) diff --git a/source/gameengine/Ketsji/KX_MotionState.cpp b/source/gameengine/Ketsji/KX_MotionState.cpp index 50b1943e5f0..6de9cf3b36e 100644 --- a/source/gameengine/Ketsji/KX_MotionState.cpp +++ b/source/gameengine/Ketsji/KX_MotionState.cpp @@ -32,6 +32,10 @@ #include "KX_MotionState.h" #include "SG_Spatial.h" +#ifdef HAVE_CONFIG_H +#include +#endif + KX_MotionState::KX_MotionState(SG_Spatial* node) : m_node(node) { diff --git a/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp b/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp index 006215b9fe8..c6f41265690 100644 --- a/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp +++ b/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp @@ -31,6 +31,10 @@ * KX_MouseFocusSensor determines mouse in/out/over events. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. // It can occasionally cause DevStudio to have internal compiler warnings. @@ -38,19 +42,13 @@ #endif #include "MT_Point3.h" - #include "KX_ClientObjectInfo.h" - - #include "RAS_FramingManager.h" #include "RAS_ICanvas.h" #include "RAS_IRasterizer.h" - #include "SCA_IScene.h" - #include "KX_Scene.h" #include "KX_Camera.h" - #include "KX_MouseFocusSensor.h" /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/Ketsji/KX_NearSensor.cpp b/source/gameengine/Ketsji/KX_NearSensor.cpp index 0388f7cc332..8008e85843f 100644 --- a/source/gameengine/Ketsji/KX_NearSensor.cpp +++ b/source/gameengine/Ketsji/KX_NearSensor.cpp @@ -38,6 +38,9 @@ #include "KX_TouchEventManager.h" #include "KX_Scene.h" // needed to create a replica +#ifdef HAVE_CONFIG_H +#include +#endif #ifdef PHYSICS_NOT_YET diff --git a/source/gameengine/Ketsji/KX_ObColorIpoSGController.cpp b/source/gameengine/Ketsji/KX_ObColorIpoSGController.cpp index d4bb714d75d..58c1494724c 100644 --- a/source/gameengine/Ketsji/KX_ObColorIpoSGController.cpp +++ b/source/gameengine/Ketsji/KX_ObColorIpoSGController.cpp @@ -30,10 +30,12 @@ */ #include "KX_ObColorIpoSGController.h" - #include "KX_ScalarInterpolator.h" #include "KX_GameObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif bool KX_ObColorIpoSGController::Update(double currentTime) { diff --git a/source/gameengine/Ketsji/KX_ObjectActuator.cpp b/source/gameengine/Ketsji/KX_ObjectActuator.cpp index 97e167385dc..bcbabc384e9 100644 --- a/source/gameengine/Ketsji/KX_ObjectActuator.cpp +++ b/source/gameengine/Ketsji/KX_ObjectActuator.cpp @@ -36,6 +36,9 @@ #include "KX_GameObject.h" #include "KX_IPhysicsController.h" +#ifdef HAVE_CONFIG_H +#include +#endif /* ------------------------------------------------------------------------- */ /* Native functions */ diff --git a/source/gameengine/Ketsji/KX_OdePhysicsController.cpp b/source/gameengine/Ketsji/KX_OdePhysicsController.cpp index ece08975f4f..0eff54dc0c6 100644 --- a/source/gameengine/Ketsji/KX_OdePhysicsController.cpp +++ b/source/gameengine/Ketsji/KX_OdePhysicsController.cpp @@ -23,6 +23,9 @@ #include "KX_GameObject.h" #include "KX_MotionState.h" +#ifdef HAVE_CONFIG_H +#include +#endif KX_OdePhysicsController::KX_OdePhysicsController( bool dyna, diff --git a/source/gameengine/Ketsji/KX_OrientationInterpolator.cpp b/source/gameengine/Ketsji/KX_OrientationInterpolator.cpp index bead946ab37..3d65e18a7d0 100644 --- a/source/gameengine/Ketsji/KX_OrientationInterpolator.cpp +++ b/source/gameengine/Ketsji/KX_OrientationInterpolator.cpp @@ -30,11 +30,13 @@ */ #include "KX_OrientationInterpolator.h" - - #include "MT_Matrix3x3.h" #include "KX_IScalarInterpolator.h" +#ifdef HAVE_CONFIG_H +#include +#endif + void KX_OrientationInterpolator::Execute(float currentTime) const { MT_Vector3 eul(m_ipos[0]->GetValue(currentTime), m_ipos[1]->GetValue(currentTime), diff --git a/source/gameengine/Ketsji/KX_PhysicsObjectWrapper.cpp b/source/gameengine/Ketsji/KX_PhysicsObjectWrapper.cpp index b14afbdc678..2bba77a966a 100644 --- a/source/gameengine/Ketsji/KX_PhysicsObjectWrapper.cpp +++ b/source/gameengine/Ketsji/KX_PhysicsObjectWrapper.cpp @@ -34,6 +34,10 @@ #include "PHY_IPhysicsEnvironment.h" #include "PHY_IPhysicsController.h" +#ifdef HAVE_CONFIG_H +#include +#endif + KX_PhysicsObjectWrapper::KX_PhysicsObjectWrapper( PHY_IPhysicsController* ctrl, PHY_IPhysicsEnvironment* physenv,PyTypeObject *T) diff --git a/source/gameengine/Ketsji/KX_PositionInterpolator.cpp b/source/gameengine/Ketsji/KX_PositionInterpolator.cpp index 96af6e3ccf3..eb8edcdca94 100644 --- a/source/gameengine/Ketsji/KX_PositionInterpolator.cpp +++ b/source/gameengine/Ketsji/KX_PositionInterpolator.cpp @@ -30,11 +30,13 @@ */ #include "KX_PositionInterpolator.h" - - #include "MT_Point3.h" #include "KX_IScalarInterpolator.h" +#ifdef HAVE_CONFIG_H +#include +#endif + void KX_PositionInterpolator::Execute(float currentTime) const { m_target.setValue(m_ipos[0]->GetValue(currentTime), m_ipos[1]->GetValue(currentTime), diff --git a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp index 67a40639a13..ae7c8caaa51 100644 --- a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp +++ b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp @@ -35,6 +35,9 @@ #include "KX_PhysicsObjectWrapper.h" #include "PHY_IPhysicsController.h" +#ifdef HAVE_CONFIG_H +#include +#endif // nasty glob variable to connect scripting language // if there is a better way (without global), please do so! diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 7b6c3a823ca..7c1b9928f5f 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -31,6 +31,10 @@ * Initialize Python thingies. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable : 4786) #endif //WIN32 diff --git a/source/gameengine/Ketsji/KX_RadarSensor.cpp b/source/gameengine/Ketsji/KX_RadarSensor.cpp index 27142987f4f..19e26b6f484 100644 --- a/source/gameengine/Ketsji/KX_RadarSensor.cpp +++ b/source/gameengine/Ketsji/KX_RadarSensor.cpp @@ -30,8 +30,12 @@ */ #include "KX_RadarSensor.h" - #include "KX_GameObject.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + /** * RadarSensor constructor. Creates a near-sensor derived class, with a cone collision shape. */ diff --git a/source/gameengine/Ketsji/KX_RayEventManager.cpp b/source/gameengine/Ketsji/KX_RayEventManager.cpp index d57f97efb44..ca16ceb015b 100644 --- a/source/gameengine/Ketsji/KX_RayEventManager.cpp +++ b/source/gameengine/Ketsji/KX_RayEventManager.cpp @@ -35,11 +35,16 @@ #include "SCA_LogicManager.h" #include "SCA_ISensor.h" #include + using namespace std; #include #include +#ifdef HAVE_CONFIG_H +#include +#endif + void KX_RayEventManager::NextFrame(double curtime,double deltatime) { for (vector::const_iterator i= m_sensors.begin();!(i==m_sensors.end());i++) diff --git a/source/gameengine/Ketsji/KX_RaySensor.cpp b/source/gameengine/Ketsji/KX_RaySensor.cpp index eac362a0b1c..5cca436327a 100644 --- a/source/gameengine/Ketsji/KX_RaySensor.cpp +++ b/source/gameengine/Ketsji/KX_RaySensor.cpp @@ -41,6 +41,9 @@ #include "KX_GameObject.h" #include "KX_Scene.h" +#ifdef HAVE_CONFIG_H +#include +#endif KX_RaySensor::KX_RaySensor(class SCA_EventManager* eventmgr, SCA_IObject* gameobj, diff --git a/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp b/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp index 4e73f4e27ca..666d4474130 100644 --- a/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp +++ b/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp @@ -42,6 +42,10 @@ #include "KX_GameObject.h" #include "KX_IPhysicsController.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/Ketsji/KX_SCA_EndObjectActuator.cpp b/source/gameengine/Ketsji/KX_SCA_EndObjectActuator.cpp index ca1c4d04084..a549ef56714 100644 --- a/source/gameengine/Ketsji/KX_SCA_EndObjectActuator.cpp +++ b/source/gameengine/Ketsji/KX_SCA_EndObjectActuator.cpp @@ -41,6 +41,10 @@ #include "KX_SCA_EndObjectActuator.h" #include "SCA_IScene.h" +#ifdef HAVE_CONFIG_H +#include +#endif + KX_SCA_EndObjectActuator::KX_SCA_EndObjectActuator(SCA_IObject *gameobj, SCA_IScene* scene, PyTypeObject* T): diff --git a/source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.cpp b/source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.cpp index 731ddeff80d..784a3e015df 100644 --- a/source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.cpp +++ b/source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.cpp @@ -38,9 +38,12 @@ // Please look here for revision history. - #include "KX_SCA_ReplaceMeshActuator.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Python functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp b/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp index 16529a91471..437f696d872 100644 --- a/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp +++ b/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp @@ -31,6 +31,9 @@ #include "KX_SG_NodeRelationships.h" +#ifdef HAVE_CONFIG_H +#include +#endif /** * Implementation of classes defined in KX_SG_NodeRelationships.h diff --git a/source/gameengine/Ketsji/KX_ScalarInterpolator.cpp b/source/gameengine/Ketsji/KX_ScalarInterpolator.cpp index e1c72c74a41..5e036600119 100644 --- a/source/gameengine/Ketsji/KX_ScalarInterpolator.cpp +++ b/source/gameengine/Ketsji/KX_ScalarInterpolator.cpp @@ -30,9 +30,12 @@ */ #include "KX_ScalarInterpolator.h" - #include "KX_IScalarInterpolator.h" +#ifdef HAVE_CONFIG_H +#include +#endif + void KX_ScalarInterpolator::Execute(float currentTime) const { *m_target = m_ipo->GetValue(currentTime); } diff --git a/source/gameengine/Ketsji/KX_ScalingInterpolator.cpp b/source/gameengine/Ketsji/KX_ScalingInterpolator.cpp index 87bd9455d74..c645eb6a3ea 100644 --- a/source/gameengine/Ketsji/KX_ScalingInterpolator.cpp +++ b/source/gameengine/Ketsji/KX_ScalingInterpolator.cpp @@ -30,11 +30,13 @@ */ #include "KX_ScalingInterpolator.h" - - #include "MT_Vector3.h" #include "KX_IScalarInterpolator.h" +#ifdef HAVE_CONFIG_H +#include +#endif + void KX_ScalingInterpolator::Execute(float currentTime) const { m_target.setValue(m_ipos[0]->GetValue(currentTime), m_ipos[1]->GetValue(currentTime), diff --git a/source/gameengine/Ketsji/KX_Scene.cpp b/source/gameengine/Ketsji/KX_Scene.cpp index 508ada3a5a9..c2cb001cce8 100644 --- a/source/gameengine/Ketsji/KX_Scene.cpp +++ b/source/gameengine/Ketsji/KX_Scene.cpp @@ -31,6 +31,10 @@ * Ketsji scene. Holds references to all scene data. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable : 4786) #endif //WIN32 diff --git a/source/gameengine/Ketsji/KX_SceneActuator.cpp b/source/gameengine/Ketsji/KX_SceneActuator.cpp index 7cba1a6ac1e..4a1d8c74b77 100644 --- a/source/gameengine/Ketsji/KX_SceneActuator.cpp +++ b/source/gameengine/Ketsji/KX_SceneActuator.cpp @@ -39,6 +39,10 @@ #include "KX_Camera.h" #include "KX_KetsjiEngine.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/Ketsji/KX_SoundActuator.cpp b/source/gameengine/Ketsji/KX_SoundActuator.cpp index b36ff5f2c09..3e2103245f1 100644 --- a/source/gameengine/Ketsji/KX_SoundActuator.cpp +++ b/source/gameengine/Ketsji/KX_SoundActuator.cpp @@ -40,6 +40,10 @@ #include "SND_Scene.h" // needed for replication #include +#ifdef HAVE_CONFIG_H +#include +#endif + /* ------------------------------------------------------------------------- */ /* Native functions */ /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/Ketsji/KX_SumoPhysicsController.cpp b/source/gameengine/Ketsji/KX_SumoPhysicsController.cpp index aa49f33bfb2..12b8775b5cd 100644 --- a/source/gameengine/Ketsji/KX_SumoPhysicsController.cpp +++ b/source/gameengine/Ketsji/KX_SumoPhysicsController.cpp @@ -6,7 +6,9 @@ #include "KX_GameObject.h" #include "KX_MotionState.h" - +#ifdef HAVE_CONFIG_H +#include +#endif void KX_SumoPhysicsController::applyImpulse(const MT_Point3& attach, const MT_Vector3& impulse) { diff --git a/source/gameengine/Ketsji/KX_TimeCategoryLogger.cpp b/source/gameengine/Ketsji/KX_TimeCategoryLogger.cpp index 53a47abd77e..61bd0385972 100644 --- a/source/gameengine/Ketsji/KX_TimeCategoryLogger.cpp +++ b/source/gameengine/Ketsji/KX_TimeCategoryLogger.cpp @@ -32,6 +32,9 @@ #include "KX_TimeCategoryLogger.h" +#ifdef HAVE_CONFIG_H +#include +#endif KX_TimeCategoryLogger::KX_TimeCategoryLogger(unsigned int maxNumMeasurements) : m_maxNumMeasurements(maxNumMeasurements) diff --git a/source/gameengine/Ketsji/KX_TimeLogger.cpp b/source/gameengine/Ketsji/KX_TimeLogger.cpp index e2114e8d8d7..509f7e13234 100644 --- a/source/gameengine/Ketsji/KX_TimeLogger.cpp +++ b/source/gameengine/Ketsji/KX_TimeLogger.cpp @@ -32,7 +32,9 @@ #include "KX_TimeLogger.h" - +#ifdef HAVE_CONFIG_H +#include +#endif KX_TimeLogger::KX_TimeLogger(unsigned int maxNumMeasurements) : m_maxNumMeasurements(maxNumMeasurements), m_logging(false), m_logStart(0) diff --git a/source/gameengine/Ketsji/KX_TouchEventManager.cpp b/source/gameengine/Ketsji/KX_TouchEventManager.cpp index d9848398900..8c7f18983e5 100644 --- a/source/gameengine/Ketsji/KX_TouchEventManager.cpp +++ b/source/gameengine/Ketsji/KX_TouchEventManager.cpp @@ -30,11 +30,14 @@ */ #include "KX_TouchEventManager.h" - #include "SCA_ISensor.h" #include "KX_TouchSensor.h" #include "KX_GameObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef PHYSICS_NOT_YET KX_TouchEventManager::KX_TouchEventManager(class SCA_LogicManager* logicmgr, diff --git a/source/gameengine/Ketsji/KX_TouchSensor.cpp b/source/gameengine/Ketsji/KX_TouchSensor.cpp index daf344999fc..ee2226d03ad 100644 --- a/source/gameengine/Ketsji/KX_TouchSensor.cpp +++ b/source/gameengine/Ketsji/KX_TouchSensor.cpp @@ -39,6 +39,10 @@ #include "KX_TouchEventManager.h" #include +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef PHYSICS_NOT_YET /* ------------------------------------------------------------------------- */ diff --git a/source/gameengine/Ketsji/KX_TrackToActuator.cpp b/source/gameengine/Ketsji/KX_TrackToActuator.cpp index 647ffb447aa..6dcb6281a63 100644 --- a/source/gameengine/Ketsji/KX_TrackToActuator.cpp +++ b/source/gameengine/Ketsji/KX_TrackToActuator.cpp @@ -45,6 +45,9 @@ #include #include "KX_GameObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif /* ------------------------------------------------------------------------- */ /* Native functions */ diff --git a/source/gameengine/Ketsji/KX_VertexProxy.cpp b/source/gameengine/Ketsji/KX_VertexProxy.cpp index 2f61ef7a630..b9cb9affe72 100644 --- a/source/gameengine/Ketsji/KX_VertexProxy.cpp +++ b/source/gameengine/Ketsji/KX_VertexProxy.cpp @@ -30,9 +30,11 @@ */ #include "KX_VertexProxy.h" - #include "RAS_TexVert.h" +#ifdef HAVE_CONFIG_H +#include +#endif PyTypeObject KX_VertexProxy::Type = { PyObject_HEAD_INIT(&PyType_Type) diff --git a/source/gameengine/Ketsji/KX_VisibilityActuator.cpp b/source/gameengine/Ketsji/KX_VisibilityActuator.cpp index c39775f4391..ccaca4a93fb 100644 --- a/source/gameengine/Ketsji/KX_VisibilityActuator.cpp +++ b/source/gameengine/Ketsji/KX_VisibilityActuator.cpp @@ -34,6 +34,10 @@ #include "KX_VisibilityActuator.h" #include "KX_GameObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif + KX_VisibilityActuator::KX_VisibilityActuator( SCA_IObject* gameobj, bool visible, diff --git a/source/gameengine/Ketsji/KX_WorldInfo.cpp b/source/gameengine/Ketsji/KX_WorldInfo.cpp index 4c1884572e5..c2e696f856e 100644 --- a/source/gameengine/Ketsji/KX_WorldInfo.cpp +++ b/source/gameengine/Ketsji/KX_WorldInfo.cpp @@ -31,6 +31,9 @@ #include "KX_WorldInfo.h" +#ifdef HAVE_CONFIG_H +#include +#endif KX_WorldInfo::~KX_WorldInfo() { diff --git a/source/gameengine/Ketsji/KX_WorldIpoController.cpp b/source/gameengine/Ketsji/KX_WorldIpoController.cpp index c4907a29a7a..4d7e6592b6b 100644 --- a/source/gameengine/Ketsji/KX_WorldIpoController.cpp +++ b/source/gameengine/Ketsji/KX_WorldIpoController.cpp @@ -30,10 +30,13 @@ */ #include "KX_WorldIpoController.h" - #include "KX_ScalarInterpolator.h" #include "KX_WorldInfo.h" +#ifdef HAVE_CONFIG_H +#include +#endif + bool KX_WorldIpoController::Update(double currentTime) { if (m_modified) diff --git a/source/gameengine/Network/LoopBackNetwork/NG_LoopBackNetworkDeviceInterface.cpp b/source/gameengine/Network/LoopBackNetwork/NG_LoopBackNetworkDeviceInterface.cpp index 9d4069bcac6..fe135210b91 100644 --- a/source/gameengine/Network/LoopBackNetwork/NG_LoopBackNetworkDeviceInterface.cpp +++ b/source/gameengine/Network/LoopBackNetwork/NG_LoopBackNetworkDeviceInterface.cpp @@ -34,6 +34,10 @@ #include "NG_LoopBackNetworkDeviceInterface.h" #include "NG_NetworkMessage.h" +#ifdef HAVE_CONFIG_H +#include +#endif + // temporary debugging printf's #ifdef NAN_NET_DEBUG #include diff --git a/source/gameengine/Network/NG_NetworkMessage.cpp b/source/gameengine/Network/NG_NetworkMessage.cpp index d000dd4b4cc..44f13ae40c4 100644 --- a/source/gameengine/Network/NG_NetworkMessage.cpp +++ b/source/gameengine/Network/NG_NetworkMessage.cpp @@ -33,6 +33,10 @@ #include "NG_NetworkMessage.h" #include +#ifdef HAVE_CONFIG_H +#include +#endif + int NG_NetworkMessage::s_nextID = 3; // just some number to start with NG_NetworkMessage::NG_NetworkMessage( diff --git a/source/gameengine/Network/NG_NetworkObject.cpp b/source/gameengine/Network/NG_NetworkObject.cpp index 54db7c4f4b8..02805a9f91a 100644 --- a/source/gameengine/Network/NG_NetworkObject.cpp +++ b/source/gameengine/Network/NG_NetworkObject.cpp @@ -32,6 +32,10 @@ */ #include "NG_NetworkObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif + NG_NetworkObject::NG_NetworkObject() { } diff --git a/source/gameengine/Network/NG_NetworkScene.cpp b/source/gameengine/Network/NG_NetworkScene.cpp index 30bc1aac122..e24fade91f8 100644 --- a/source/gameengine/Network/NG_NetworkScene.cpp +++ b/source/gameengine/Network/NG_NetworkScene.cpp @@ -39,6 +39,10 @@ #include "NG_NetworkMessage.h" #include "NG_NetworkObject.h" +#ifdef HAVE_CONFIG_H +#include +#endif + NG_NetworkScene::NG_NetworkScene(NG_NetworkDeviceInterface* nic) { m_networkdevice = nic; diff --git a/source/gameengine/Network/TerraplayNetwork/NG_TerraplayNetworkDeviceInterface.cpp b/source/gameengine/Network/TerraplayNetwork/NG_TerraplayNetworkDeviceInterface.cpp index 55710e0f8ad..44a7e571b03 100644 --- a/source/gameengine/Network/TerraplayNetwork/NG_TerraplayNetworkDeviceInterface.cpp +++ b/source/gameengine/Network/TerraplayNetwork/NG_TerraplayNetworkDeviceInterface.cpp @@ -34,6 +34,10 @@ #include "NG_TerraplayNetworkDeviceInterface.h" #include "NG_NetworkMessage.h" +#ifdef HAVE_CONFIG_H +#include +#endif + //---- relocate these void NG_TerraplayNetworkDeviceInterface::interface_error(char *str, GASResult error) { GASRString err_str = GAS->ErrorTranslate(error); diff --git a/source/gameengine/Physics/BlOde/OdePhysicsController.cpp b/source/gameengine/Physics/BlOde/OdePhysicsController.cpp index db869aca58e..6493caca25b 100644 --- a/source/gameengine/Physics/BlOde/OdePhysicsController.cpp +++ b/source/gameengine/Physics/BlOde/OdePhysicsController.cpp @@ -24,6 +24,10 @@ #include +#ifdef HAVE_CONFIG_H +#include +#endif + /////////////////////////////////////////////////////////////////////////// // // general to-do list for ODE physics. This is maintained in doxygen format. diff --git a/source/gameengine/Physics/BlOde/OdePhysicsEnvironment.cpp b/source/gameengine/Physics/BlOde/OdePhysicsEnvironment.cpp index 8023b791be0..5b6942c4fbb 100644 --- a/source/gameengine/Physics/BlOde/OdePhysicsEnvironment.cpp +++ b/source/gameengine/Physics/BlOde/OdePhysicsEnvironment.cpp @@ -29,6 +29,9 @@ #include <../ode/src/joint.h> #include +#ifdef HAVE_CONFIG_H +#include +#endif ODEPhysicsEnvironment::ODEPhysicsEnvironment() { diff --git a/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp b/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp index bc88ae7012d..bfb24f5fec1 100644 --- a/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp +++ b/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp @@ -32,7 +32,9 @@ #include "DummyPhysicsEnvironment.h" #include "PHY_IMotionState.h" - +#ifdef HAVE_CONFIG_H +#include +#endif DummyPhysicsEnvironment::DummyPhysicsEnvironment() { diff --git a/source/gameengine/Physics/Sumo/Fuzzics/sample/particle.cpp b/source/gameengine/Physics/Sumo/Fuzzics/sample/particle.cpp index e8e78d89a4e..53b9ae684f3 100644 --- a/source/gameengine/Physics/Sumo/Fuzzics/sample/particle.cpp +++ b/source/gameengine/Physics/Sumo/Fuzzics/sample/particle.cpp @@ -19,6 +19,10 @@ #include "solid.h" +#ifdef HAVE_CONFIG_H +#include +#endif + const MT_Scalar bowl_curv = 0.10; const MT_Scalar timeStep = 0.02; const MT_Scalar ground_margin = 0.0; diff --git a/source/gameengine/Physics/Sumo/Fuzzics/sample/particle0.cpp b/source/gameengine/Physics/Sumo/Fuzzics/sample/particle0.cpp index 1c03621f530..cdf0a2d8f64 100644 --- a/source/gameengine/Physics/Sumo/Fuzzics/sample/particle0.cpp +++ b/source/gameengine/Physics/Sumo/Fuzzics/sample/particle0.cpp @@ -18,6 +18,10 @@ #include "solid.h" +#ifdef HAVE_CONFIG_H +#include +#endif + const MT_Scalar bowl_curv = 0.10; const MT_Scalar timeStep = 0.04; const MT_Scalar ground_margin = 0.0; diff --git a/source/gameengine/Physics/Sumo/Fuzzics/src/SM_FhObject.cpp b/source/gameengine/Physics/Sumo/Fuzzics/src/SM_FhObject.cpp index f8be49aa126..0ba5fd673ca 100644 --- a/source/gameengine/Physics/Sumo/Fuzzics/src/SM_FhObject.cpp +++ b/source/gameengine/Physics/Sumo/Fuzzics/src/SM_FhObject.cpp @@ -1,6 +1,10 @@ #include "SM_FhObject.h" #include "MT_MinMax.h" +#ifdef HAVE_CONFIG_H +#include +#endif + void SM_FhObject::ray_hit(void *client_data, void *client_object1, void *client_object2, diff --git a/source/gameengine/Physics/Sumo/Fuzzics/src/SM_Object.cpp b/source/gameengine/Physics/Sumo/Fuzzics/src/SM_Object.cpp index d6717ca342e..51673b92ffb 100644 --- a/source/gameengine/Physics/Sumo/Fuzzics/src/SM_Object.cpp +++ b/source/gameengine/Physics/Sumo/Fuzzics/src/SM_Object.cpp @@ -4,6 +4,10 @@ * The basic physics object. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. // It can occasionally cause DevStudio to have internal compiler warnings. diff --git a/source/gameengine/Physics/Sumo/Fuzzics/src/SM_Scene.cpp b/source/gameengine/Physics/Sumo/Fuzzics/src/SM_Scene.cpp index e3eb7e5c5ea..424796ea71e 100644 --- a/source/gameengine/Physics/Sumo/Fuzzics/src/SM_Scene.cpp +++ b/source/gameengine/Physics/Sumo/Fuzzics/src/SM_Scene.cpp @@ -4,6 +4,10 @@ * The physics scene. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning(disable : 4786) // shut off 255 char limit debug template warning #endif diff --git a/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp b/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp index 2b2c5b81856..d89e43cd04b 100644 --- a/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp +++ b/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp @@ -35,6 +35,9 @@ #include "SM_Object.h" #include "MT_Quaternion.h" +#ifdef HAVE_CONFIG_H +#include +#endif SumoPhysicsController::SumoPhysicsController( class SM_Scene* sumoScene, diff --git a/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp b/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp index 05b88fcb06b..ea18666a72d 100644 --- a/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp +++ b/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp @@ -34,6 +34,9 @@ #include "SumoPhysicsController.h" #include "SM_Scene.h" +#ifdef HAVE_CONFIG_H +#include +#endif const MT_Scalar UpperBoundForFuzzicsIntegrator = 0.01; // At least 100Hz (isn't this CPU hungry ?) diff --git a/source/gameengine/Physics/common/PHY_IMotionState.cpp b/source/gameengine/Physics/common/PHY_IMotionState.cpp index 106f453424d..355f1910dc1 100644 --- a/source/gameengine/Physics/common/PHY_IMotionState.cpp +++ b/source/gameengine/Physics/common/PHY_IMotionState.cpp @@ -31,6 +31,10 @@ */ #include "PHY_IMotionState.h" +#ifdef HAVE_CONFIG_H +#include +#endif + PHY_IMotionState::~PHY_IMotionState() { diff --git a/source/gameengine/Physics/common/PHY_IPhysicsController.cpp b/source/gameengine/Physics/common/PHY_IPhysicsController.cpp index ec0f7b9df3e..34849a55817 100644 --- a/source/gameengine/Physics/common/PHY_IPhysicsController.cpp +++ b/source/gameengine/Physics/common/PHY_IPhysicsController.cpp @@ -31,6 +31,9 @@ */ #include "PHY_IPhysicsController.h" +#ifdef HAVE_CONFIG_H +#include +#endif PHY_IPhysicsController::~PHY_IPhysicsController() { diff --git a/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.cpp b/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.cpp index 7c0660976fb..2ba982b4442 100644 --- a/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.cpp +++ b/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.cpp @@ -32,6 +32,10 @@ #include "PHY_IPhysicsEnvironment.h" +#ifdef HAVE_CONFIG_H +#include +#endif + /** * Physics Environment takes care of stepping the simulation and is a container for physics entities (rigidbodies,constraints, materials etc.) * A derived class may be able to 'construct' entities by loading and/or converting diff --git a/source/gameengine/Rasterizer/RAS_BucketManager.cpp b/source/gameengine/Rasterizer/RAS_BucketManager.cpp index 39ec523cfa2..38eee62b954 100644 --- a/source/gameengine/Rasterizer/RAS_BucketManager.cpp +++ b/source/gameengine/Rasterizer/RAS_BucketManager.cpp @@ -29,6 +29,9 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif #ifdef WIN32 // don't show these anoying STL warnings diff --git a/source/gameengine/Rasterizer/RAS_FramingManager.cpp b/source/gameengine/Rasterizer/RAS_FramingManager.cpp index af0499bd348..d9b3708f6aa 100644 --- a/source/gameengine/Rasterizer/RAS_FramingManager.cpp +++ b/source/gameengine/Rasterizer/RAS_FramingManager.cpp @@ -30,9 +30,12 @@ */ #include "RAS_FramingManager.h" - #include "RAS_Rect.h" +#ifdef HAVE_CONFIG_H +#include +#endif + void RAS_FramingManager:: ComputeDefaultFrustum( diff --git a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp index 7e1017b5c39..1a11a0400f4 100644 --- a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp +++ b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp @@ -31,6 +31,9 @@ #include "RAS_IPolygonMaterial.h" +#ifdef HAVE_CONFIG_H +#include +#endif RAS_IPolyMaterial::RAS_IPolyMaterial(const STR_String& texname, bool ba, diff --git a/source/gameengine/Rasterizer/RAS_IRenderTools.cpp b/source/gameengine/Rasterizer/RAS_IRenderTools.cpp index d52ba72af40..aa0053f3d1d 100644 --- a/source/gameengine/Rasterizer/RAS_IRenderTools.cpp +++ b/source/gameengine/Rasterizer/RAS_IRenderTools.cpp @@ -31,7 +31,9 @@ #include "RAS_IRenderTools.h" - +#ifdef HAVE_CONFIG_H +#include +#endif void RAS_IRenderTools::SetViewMat(const MT_Transform& trans) { diff --git a/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp b/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp index ecb621c0d9d..d9e27c9c8d0 100644 --- a/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp +++ b/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp @@ -29,9 +29,12 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ - #include "RAS_MaterialBucket.h" +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) #include diff --git a/source/gameengine/Rasterizer/RAS_MeshObject.cpp b/source/gameengine/Rasterizer/RAS_MeshObject.cpp index 3c78b7cf991..2a7323d845a 100644 --- a/source/gameengine/Rasterizer/RAS_MeshObject.cpp +++ b/source/gameengine/Rasterizer/RAS_MeshObject.cpp @@ -30,10 +30,13 @@ */ #include "RAS_MeshObject.h" - #include "RAS_IRasterizer.h" #include "MT_MinMax.h" +#ifdef HAVE_CONFIG_H +#include +#endif + STR_String RAS_MeshObject::s_emptyname = ""; diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_CheckVertexArrays.cpp b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_CheckVertexArrays.cpp index ff57e7ab102..0a62acbec71 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_CheckVertexArrays.cpp +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_CheckVertexArrays.cpp @@ -31,6 +31,10 @@ */ #include "RAS_CheckVertexArrays.h" +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #include #endif // WIN32 diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp index 32b5852137b..959b8ecc99f 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp @@ -1,5 +1,9 @@ #include "RAS_OpenGLRasterizer.h" +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #include #endif // WIN32 diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_VAOpenGLRasterizer.cpp b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_VAOpenGLRasterizer.cpp index fe582a3d2ee..6350390ef76 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_VAOpenGLRasterizer.cpp +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_VAOpenGLRasterizer.cpp @@ -1,9 +1,10 @@ -#ifdef WIN32 +#ifdef HAVE_CONFIG_H +#include +#endif +#ifdef WIN32 #include "RAS_VAOpenGLRasterizer.h" - - #include #include "GL/gl.h" diff --git a/source/gameengine/Rasterizer/RAS_Polygon.cpp b/source/gameengine/Rasterizer/RAS_Polygon.cpp index c495ef9679d..4ca1e37eb1f 100644 --- a/source/gameengine/Rasterizer/RAS_Polygon.cpp +++ b/source/gameengine/Rasterizer/RAS_Polygon.cpp @@ -29,6 +29,10 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifdef HAVE_CONFIG_H +#include +#endif + #ifdef WIN32 #pragma warning (disable:4786) diff --git a/source/gameengine/Rasterizer/RAS_TexVert.cpp b/source/gameengine/Rasterizer/RAS_TexVert.cpp index 20a4f0d2570..c29a16c71d8 100644 --- a/source/gameengine/Rasterizer/RAS_TexVert.cpp +++ b/source/gameengine/Rasterizer/RAS_TexVert.cpp @@ -31,6 +31,9 @@ #include "RAS_TexVert.h" +#ifdef HAVE_CONFIG_H +#include +#endif RAS_TexVert::RAS_TexVert(const MT_Point3& xyz, const MT_Point2& uv, diff --git a/source/gameengine/Rasterizer/RAS_texmatrix.cpp b/source/gameengine/Rasterizer/RAS_texmatrix.cpp index 515f05b8303..791d6e3dc7d 100644 --- a/source/gameengine/Rasterizer/RAS_texmatrix.cpp +++ b/source/gameengine/Rasterizer/RAS_texmatrix.cpp @@ -29,10 +29,11 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ - - #include "RAS_TexMatrix.h" +#ifdef HAVE_CONFIG_H +#include +#endif void RAS_CalcTexMatrix(RAS_TexVert p[3],MT_Point3& origin,MT_Vector3& udir,MT_Vector3& vdir) { diff --git a/source/gameengine/SceneGraph/SG_Controller.cpp b/source/gameengine/SceneGraph/SG_Controller.cpp index 4a5735bb4c0..918b4ea3fb4 100644 --- a/source/gameengine/SceneGraph/SG_Controller.cpp +++ b/source/gameengine/SceneGraph/SG_Controller.cpp @@ -31,6 +31,9 @@ #include "SG_Controller.h" +#ifdef HAVE_CONFIG_H +#include +#endif void SG_Controller:: diff --git a/source/gameengine/SceneGraph/SG_IObject.cpp b/source/gameengine/SceneGraph/SG_IObject.cpp index 2561bd0c672..5433b5017eb 100644 --- a/source/gameengine/SceneGraph/SG_IObject.cpp +++ b/source/gameengine/SceneGraph/SG_IObject.cpp @@ -30,9 +30,12 @@ */ #include "SG_IObject.h" - #include "SG_Controller.h" +#ifdef HAVE_CONFIG_H +#include +#endif + SG_IObject:: SG_IObject( void* clientobj, diff --git a/source/gameengine/SceneGraph/SG_Node.cpp b/source/gameengine/SceneGraph/SG_Node.cpp index d40cdca0c76..c3e4ef79c28 100644 --- a/source/gameengine/SceneGraph/SG_Node.cpp +++ b/source/gameengine/SceneGraph/SG_Node.cpp @@ -30,11 +30,13 @@ */ #include "SG_Node.h" - #include "SG_ParentRelation.h" - #include +#ifdef HAVE_CONFIG_H +#include +#endif + using namespace std; diff --git a/source/gameengine/SceneGraph/SG_Spatial.cpp b/source/gameengine/SceneGraph/SG_Spatial.cpp index 96370f28ef3..e37fd08a517 100644 --- a/source/gameengine/SceneGraph/SG_Spatial.cpp +++ b/source/gameengine/SceneGraph/SG_Spatial.cpp @@ -35,6 +35,10 @@ #include "SG_Controller.h" #include "SG_ParentRelation.h" +#ifdef HAVE_CONFIG_H +#include +#endif + SG_Spatial:: SG_Spatial( void* clientobj, diff --git a/source/kernel/gen_system/GEN_HashedPtr.cpp b/source/kernel/gen_system/GEN_HashedPtr.cpp index 6163b4a7c64..f852530fa53 100644 --- a/source/kernel/gen_system/GEN_HashedPtr.cpp +++ b/source/kernel/gen_system/GEN_HashedPtr.cpp @@ -32,6 +32,10 @@ */ #include "GEN_HashedPtr.h" +#ifdef HAVE_CONFIG_H +#include +#endif + unsigned int GEN_Hash(unsigned int inDWord) { unsigned int key = inDWord; diff --git a/source/kernel/gen_system/GEN_Matrix4x4.cpp b/source/kernel/gen_system/GEN_Matrix4x4.cpp index ad250ea9ffc..4b941648e49 100644 --- a/source/kernel/gen_system/GEN_Matrix4x4.cpp +++ b/source/kernel/gen_system/GEN_Matrix4x4.cpp @@ -31,7 +31,9 @@ #include "GEN_Matrix4x4.h" - +#ifdef HAVE_CONFIG_H +#include +#endif GEN_Matrix4x4::GEN_Matrix4x4() { diff --git a/source/kernel/gen_system/SYS_SingletonSystem.cpp b/source/kernel/gen_system/SYS_SingletonSystem.cpp index 5692c5348de..b65ba69ec42 100644 --- a/source/kernel/gen_system/SYS_SingletonSystem.cpp +++ b/source/kernel/gen_system/SYS_SingletonSystem.cpp @@ -34,6 +34,10 @@ #include "SYS_SingletonSystem.h" #include "GEN_DataCache.h" +#ifdef HAVE_CONFIG_H +#include +#endif + SYS_SingletonSystem* SYS_SingletonSystem::_instance = 0; void SYS_SingletonSystem::Destruct() diff --git a/source/kernel/gen_system/SYS_System.cpp b/source/kernel/gen_system/SYS_System.cpp index 48f5b2632fd..84cd61f0ba6 100644 --- a/source/kernel/gen_system/SYS_System.cpp +++ b/source/kernel/gen_system/SYS_System.cpp @@ -34,6 +34,10 @@ #include "SYS_System.h" #include "SYS_SingletonSystem.h" +#ifdef HAVE_CONFIG_H +#include +#endif + SYS_SystemHandle SYS_GetSystem() { return (SYS_SystemHandle) SYS_SingletonSystem::Instance(); -- cgit v1.2.3