* on cygwin, isnan is declared in ieeepf.h
* CYGWIN is a special case in that it is windows based, but sometimes
folows unix conventions. SGAtomic compilation failed on an illegal
volatile type cast without the additional __CYGWIN__ define check.
#ifndef SGVec2_H
#define SGVec2_H
+#if defined ( __CYGWIN__ )
+#include <ieeefp.h>
+#endif
+
#include <osg/Vec2f>
#include <osg/Vec2d>
# include <windows.h>
#endif
+#if defined ( __CYGWIN__ )
+#include <ieeefp.h>
+#endif
+
#include <simgear/compiler.h>
#include <simgear/constants.h>
#include <simgear/structure/exception.hxx>
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
+#ifdef __CYGWIN__
+#include <ieeefp.h>
+#endif
#include <simgear/compiler.h>
# include <simgear_config.h>
#endif
+#ifdef __CYGWIN__
+#include <ieeefp.h>
+#endif
+
#include <simgear/compiler.h>
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#elif defined(__sgi) && defined(_COMPILER_VERSION) && (_COMPILER_VERSION>=730)
// No need to include something. Is a Compiler API ...
# define SGATOMIC_USE_MIPSPRO_BUILTINS
-#elif defined(WIN32)
+#elif defined(WIN32) && !defined ( __CYGWIN__ )
# include <windows.h>
# define SGATOMIC_USE_WIN32_INTERLOCKED
#else