]> git.mxchange.org Git - simgear.git/blobdiff - XGL/xglUtils.c
Check for __CYGWIN__ (b20) as well as __CYGWIN32__ (pre b20 compilers)
[simgear.git] / XGL / xglUtils.c
index 3f4f452e5841b1f040891c7273401ee74e35d0b1..bc5d7217e11f4f417c546bf4b914e04693f42cce 100644 (file)
@@ -1,17 +1,21 @@
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 
-#ifndef __CYGWIN32__
+#if !defined( __CYGWIN__ ) && !defined( __CYGWIN32__ )
 #  include <malloc.h>
 #endif
 
-#ifdef WIN32
-#  include <windows.h>
-#else
+#ifdef HAVE_UNISTD_H
 #  include <unistd.h>
 #endif
 
+#include <string.h>
+
 #include "xgl.h"
 
 #ifndef TRUE
 #endif
 
 int   xglTraceOn = TRUE ;
-FILE *xglTraceFd = stdout ;
+
+#ifndef WIN32
+    FILE *xglTraceFd = stdout ;
+#else /* WIN32 */
+    /* Bail for now, we just want it to compile I guess */
+    FILE *xglTraceFd = NULL;
+#endif /* WIN32 */
 
 struct GLenumLookup
 {