MacOS-X fixes.

This commit is contained in:
ehofman
2005-07-27 08:02:11 +00:00
parent 7c2575d723
commit 7aa514d9ba
2 changed files with 2 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ inline int (isnan)(double r) { return isnan(r); }
static ssgStateSelector *layer_states[SGCloudLayer::SG_MAX_CLOUD_COVERAGES];
static bool state_initialized = false;
static bool bump_mapping = false;
static int nb_texture_unit = 0;
static GLint nb_texture_unit = 0;
static ssgTexture *normal_map[SGCloudLayer::SG_MAX_CLOUD_COVERAGES][2] = { 0 };
static ssgTexture *color_map[SGCloudLayer::SG_MAX_CLOUD_COVERAGES][2] = { 0 };
static GLuint normalization_cube_map;

View File

@@ -37,8 +37,7 @@
# ifdef __GNUC__
# if ( __GNUC__ >= 3 ) && ( __GNUC_MINOR__ >= 3 )
// # include <math.h>
extern "C" int isnan (double);
extern "C" int isinf (double);
inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
# else
// any C++ header file undefines isinf and isnan
// so this should be included before <iostream>