Fixes for MacOSX build.

This commit is contained in:
Robert Osfield
2002-03-25 19:04:30 +00:00
parent b7022b7e23
commit 06fcd12598
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
#include <math.h>
#if defined(WIN32) || defined (macintosh)|| defined (sun)
#if defined(WIN32) || defined (macintosh)|| defined (sun) || defined (__DARWIN_OSX__)
#include <float.h>

View File

@@ -150,7 +150,7 @@ void Image::ensureDimensionsArePowerOfTwo()
float rounded_tp2 = floorf(tp2+0.5f);
int new_t = (int)(powf(2.0f,rounded_tp2));
static int max_size=256;
static GLint max_size=256;
static bool init = true;
if (init)