From 199067d1506cd804f638180d5868195122932b7a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 10 Mar 2009 11:14:56 +0000 Subject: [PATCH] From Martin Spott, compile fixes for IBM AIX. --- include/osg/GLU | 3 ++- include/osg/Math | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/osg/GLU b/include/osg/GLU index 4cd9fd2a5..d562704a5 100644 --- a/include/osg/GLU +++ b/include/osg/GLU @@ -16,7 +16,8 @@ #include -#if defined(__APPLE__) || defined (_AIX) +#if defined(__APPLE__) || \ + (defined (_AIX) && !defined (_AIX51)) #include #else #include diff --git a/include/osg/Math b/include/osg/Math index b9c0307d8..f5ae51618 100644 --- a/include/osg/Math +++ b/include/osg/Math @@ -44,7 +44,9 @@ #include #endif -#if defined (sun) || defined (__APPLE__) +#if defined (sun) || \ + defined (__APPLE__) || \ + (defined (_AIX) && defined (__GNUC__)) #include @@ -93,7 +95,8 @@ #if defined (sun) || \ defined (__hpux) || \ - defined (APPLE_PRE_10_2) + defined (APPLE_PRE_10_2) || \ + (defined (_AIX) && defined (__GNUC__)) #ifndef floorf inline float floorf(float value) { return static_cast(floor(value)); }