]> git.mxchange.org Git - simgear.git/blobdiff - XGL/xglUtils.c
FreeBSD support.
[simgear.git] / XGL / xglUtils.c
index e727cea8e0328fee33fb8c6b1fe96925557432b2..bc5d7217e11f4f417c546bf4b914e04693f42cce 100644 (file)
@@ -1,8 +1,12 @@
 
+#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
 
 #endif
 
 int   xglTraceOn = TRUE ;
-#ifndef __CYGWIN32__
+
+#ifndef WIN32
     FILE *xglTraceFd = stdout ;
-#else /* __CYGWIN32__ */
+#else /* WIN32 */
     /* Bail for now, we just want it to compile I guess */
     FILE *xglTraceFd = NULL;
-#endif /* __CYGWIN32 */
+#endif /* WIN32 */
 
 struct GLenumLookup
 {