From: durk Date: Sun, 22 Oct 2006 19:42:17 +0000 (+0000) Subject: Compile time fixes needed to build SimGear on recent cygwin versions. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8303b46230120408fc3b0d7df3091b9abdef493;p=simgear.git Compile time fixes needed to build SimGear on recent cygwin versions. --- diff --git a/simgear/math/SGQuat.hxx b/simgear/math/SGQuat.hxx index 1ac86fe5..c50f185d 100644 --- a/simgear/math/SGQuat.hxx +++ b/simgear/math/SGQuat.hxx @@ -18,6 +18,15 @@ #ifndef SGQuat_H #define SGQuat_H +#ifdef min +#undef min +#endif + +#ifdef max +#undef max +#endif + + /// 3D Vector Class template class SGQuat { diff --git a/simgear/scene/sky/cloud.cxx b/simgear/scene/sky/cloud.cxx index 99290281..b3f7440f 100644 --- a/simgear/scene/sky/cloud.cxx +++ b/simgear/scene/sky/cloud.cxx @@ -56,6 +56,9 @@ # endif #endif +#if defined (__CYGWIN__) +#include +#endif static ssgSharedPtr layer_states[SGCloudLayer::SG_MAX_CLOUD_COVERAGES]; static bool state_initialized = false; diff --git a/simgear/scene/sky/cloudfield.cxx b/simgear/scene/sky/cloudfield.cxx index f588b869..809efb52 100644 --- a/simgear/scene/sky/cloudfield.cxx +++ b/simgear/scene/sky/cloudfield.cxx @@ -54,6 +54,11 @@ SG_USING_STD(vector); # endif #endif + +#if defined (__CYGWIN__) +#include +#endif + extern SGSky *thesky; static list_of_culledCloud inViewClouds; diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 2d7c53a9..d29b7fb1 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -63,6 +63,11 @@ extern "C" int isinf (double); # endif #endif +#if defined (__CYGWIN__) +#include +#endif + + #include STL_IOSTREAM #include