Add support for Metrowerks Codewarrior build under Windows.
This commit is contained in:
@@ -194,6 +194,6 @@ inline void clampArray4BetweenRange(A& value,const T minValue,const T maxValue,c
|
||||
clampArrayElementsBetweenRange(value,0u,3u,minValue,maxValue,valueName);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#pragma warning( disable : 4290 )
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# ifdef SG_LIBRARY
|
||||
# define SG_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
#ifdef __DARWIN_OSX__
|
||||
#include <OpenGL/gl.h>
|
||||
#else
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// required for compatibility with glext.h sytle function definitions of
|
||||
@@ -40,7 +40,7 @@
|
||||
// to avoid name space pollution, but Win32's <GL/gl.h>
|
||||
// needs APIENTRY and WINGDIAPI defined properly.
|
||||
// F
|
||||
# if 0
|
||||
# if defined(__MWERKS__)
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# include <windows.h>
|
||||
# else
|
||||
|
||||
@@ -72,7 +72,7 @@ inline double inRadians(double angle) { return angle; }
|
||||
inline double DegreesToRadians(double angle) { return angle*PI/180.0; }
|
||||
inline double RadiansToDegrees(double angle) { return angle*180.0/PI; }
|
||||
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MWERKS__)
|
||||
inline bool isNaN(float v) { return _isnan(v)!=0; }
|
||||
inline bool isNaN(double v) { return _isnan(v)!=0; }
|
||||
#else
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace osg {
|
||||
* each trifan or tristrip = (length-2) triangles and so on.
|
||||
*/
|
||||
|
||||
class SG_EXPORT Statistics : public osg::Referenced, public osg::Drawable::AttributeFunctor
|
||||
class Statistics : public osg::Referenced, public osg::Drawable::AttributeFunctor
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# ifdef OSGDB_LIBRARY
|
||||
# define OSGDB_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
|
||||
@@ -23,7 +23,7 @@ class OSGDB_EXPORT FieldReaderIterator
|
||||
FieldReaderIterator(const FieldReaderIterator& ic);
|
||||
virtual ~FieldReaderIterator();
|
||||
|
||||
virtual FieldReaderIterator& operator = (const FieldReaderIterator& ic);
|
||||
FieldReaderIterator& operator = (const FieldReaderIterator& ic);
|
||||
|
||||
void attach(std::istream* input);
|
||||
void detach();
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#pragma warning( disable : 4786 )
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# ifdef OSGGLUT_LIBRARY
|
||||
# define OSGGLUT_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#pragma warning( disable : 4786 )
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# ifdef OSGUTIL_LIBRARY
|
||||
# define OSGUTIL_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user