From Martin Spott, compile fixes for IBM AIX.

This commit is contained in:
Robert Osfield 2009-03-10 11:14:56 +00:00
parent 9643c15346
commit 199067d150
2 changed files with 7 additions and 3 deletions

View File

@ -16,7 +16,8 @@
#include <osg/GL> #include <osg/GL>
#if defined(__APPLE__) || defined (_AIX) #if defined(__APPLE__) || \
(defined (_AIX) && !defined (_AIX51))
#include <OpenGL/glu.h> #include <OpenGL/glu.h>
#else #else
#include <GL/glu.h> #include <GL/glu.h>

View File

@ -44,7 +44,9 @@
#include <float.h> #include <float.h>
#endif #endif
#if defined (sun) || defined (__APPLE__) #if defined (sun) || \
defined (__APPLE__) || \
(defined (_AIX) && defined (__GNUC__))
#include <float.h> #include <float.h>
@ -93,7 +95,8 @@
#if defined (sun) || \ #if defined (sun) || \
defined (__hpux) || \ defined (__hpux) || \
defined (APPLE_PRE_10_2) defined (APPLE_PRE_10_2) || \
(defined (_AIX) && defined (__GNUC__))
#ifndef floorf #ifndef floorf
inline float floorf(float value) { return static_cast<float>(floor(value)); } inline float floorf(float value) { return static_cast<float>(floor(value)); }