MacOS/Metrowerks tweaks.
Fix for fgText default constructor.
#endif
+#include <math.h>
+
#include <Misc/fgpath.hxx>
#include "newbucket.hxx"
while ( in.get(c) ) {
#ifdef __MWERKS__
+
// -dw- for unix file compatibility
// -clo- this causes problems for unix
if ( (c == '\n') || (c == '\r') || (c == '\0') ) {
break;
- }
-#endif
+ }
+
+ if ( ! isspace( c ) && c != '\n' ) {
+ // put pack the non-space character
+ in.putback(c);
+ break;
+ }
+
+#else
if ( ! isspace( c ) ) {
// put pack the non-space character
in.putback(c);
break;
}
+
+#endif
+
}
return in;
}
#include <stdlib.h>
#include <string.h>
-#if !defined( __CYGWIN__ ) && !defined( __CYGWIN32__ )
+#if !defined( WIN32 )
# if !defined( HAVE_STL_SGI_PORT ) && !defined( __MWERKS__ )
// Avoid malloc with STLport and MSL
# include <malloc.h>
int xglTraceOn = TRUE ;
-#ifndef WIN32
- FILE *xglTraceFd = stdout ;
-#else /* WIN32 */
- /* Bail for now, we just want it to compile I guess */
- FILE *xglTraceFd = NULL;
-#endif /* WIN32 */
+FILE *xglTraceFd = NULL;
struct GLenumLookup
{