diff --git a/include/osg/GL b/include/osg/GL index ab48c0400..4945b5cb5 100644 --- a/include/osg/GL +++ b/include/osg/GL @@ -68,8 +68,9 @@ #define DECLSPEC_IMPORT __declspec(dllimport) #define WINGDIAPI DECLSPEC_IMPORT #endif - // XXX This is from Win32's - #ifndef _WCHAR_T_DEFINED + // XXX This is from Win32's + + #if !defined(_WCHAR_T_DEFINED) && !(defined(__GNUC__)&&(__GNUC__ == 3)) typedef unsigned short wchar_t; #define _WCHAR_T_DEFINED #endif diff --git a/include/osg/Math b/include/osg/Math index 06a24b24e..9e31efb1a 100644 --- a/include/osg/Math +++ b/include/osg/Math @@ -7,6 +7,10 @@ #include +#if defined(__GNUC__) && defined(WIN32) +# include +#endif + // for OSX users : // comment in if you want backwards compatibility with 10.1.x versions // otherwise you'll have problems with missing floorf and __isnan*() diff --git a/src/Demos/osgshadowtexture/CreateShadowedScene.cpp b/src/Demos/osgshadowtexture/CreateShadowedScene.cpp index b7c8b1413..e10dcd6cc 100644 --- a/src/Demos/osgshadowtexture/CreateShadowedScene.cpp +++ b/src/Demos/osgshadowtexture/CreateShadowedScene.cpp @@ -10,7 +10,7 @@ #include "CreateShadowedScene.h" - +using namespace osg; class CreateShadowTextureCullCallback : public osg::NodeCallback { @@ -55,7 +55,7 @@ class CreateShadowTextureCullCallback : public osg::NodeCallback // we need this to get round the order dependance // of eye linear tex gen... - class MyTexGen : public osg::TexGen + class MyTexGen : public TexGen { public: