Moved the #include/#ifdef/#define stuff up to the top.
authorRichard Rauch <rkr@olib.org>
Mon, 22 Sep 2003 19:01:55 +0000 (19:01 +0000)
committerRichard Rauch <rkr@olib.org>
Mon, 22 Sep 2003 19:01:55 +0000 (19:01 +0000)
Changed #ifdef to #if, per Nigel(?)'s comment.  Ooops.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@201 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_main.c

index 0745873..1ef3d2b 100644 (file)
 #include "../include/GL/freeglut.h"
 #include "freeglut_internal.h"
 
+#include <limits.h>
+#if TARGET_HOST_UNIX_X11
+#include <sys/types.h>
+#include <sys/time.h>
+#include <unistd.h>
+#include <errno.h>
+#include <sys/stat.h>
+#elif TARGET_HOST_WIN32
+#endif
+
+#ifndef MAX
+#define MAX(a,b) (((a)>(b)) ? (a) : (b))
+#endif
+
+#ifndef MIN
+#define MIN(a,b) (((a)<(b)) ? (a) : (b))
+#endif
+
+
 /*
  * TODO BEFORE THE STABLE RELEASE:
  *
@@ -399,22 +418,6 @@ void fgWarning( const char *fmt, ... )
     va_end( ap );
 }
 
-#include <limits.h>
-#ifdef TARGET_HOST_UNIX_X11
-#include <sys/types.h>
-#include <sys/time.h>
-#include <unistd.h>
-#include <errno.h>
-#include <sys/stat.h>
-#elif TARGET_HOST_WIN32
-#endif
-#ifndef MAX
-#define MAX(a,b) (((a)>(b)) ? (a) : (b))
-#endif
-#ifndef MIN
-#define MIN(a,b) (((a)<(b)) ? (a) : (b))
-#endif
-
 /*
  * Indicates whether Joystick events are being used by ANY window.
  *
@@ -480,7 +483,7 @@ static long fgNextTimer( void )
  */
 static void fgSleepForEvents( void )
 {
-#ifdef TARGET_HOST_UNIX_X11
+#if TARGET_HOST_UNIX_X11
     fd_set fdset;
     int err;
     int socket;