Added guard to prevent VS7 builds using the #defines for cosf etc.

This commit is contained in:
Robert Osfield 2002-08-24 21:12:51 +00:00
parent ee8757113b
commit 9e3a282429

View File

@ -7,7 +7,10 @@
#include <math.h>
#if defined(WIN32) || defined (macintosh)|| defined (sun) || defined (__DARWIN_OSX__)
#if (defined(WIN32) && !(defined(_MSC_VER) && (_MSC_VER >= 1300)) ) || \
defined (macintosh)|| \
defined (sun) || \
defined (__DARWIN_OSX__)
#include <float.h>
@ -55,7 +58,11 @@
#endif
#if defined(WIN32) || defined (macintosh)|| defined (sun) || defined (__DARWIN_OSX__) || defined (__hpux__)
#if (defined(WIN32) && !(defined(_MSC_VER) && (_MSC_VER >= 1300)) ) || \
defined (macintosh)|| \
defined (sun) || \
defined (__DARWIN_OSX__) ||\
defined (__hpux__)
#ifndef floorf
#define floorf (float)floor