glut: Define markWindowHidden for non-Windows only.
authorVinson Lee <vlee@vmware.com>
Tue, 21 Sep 2010 22:11:00 +0000 (15:11 -0700)
committerVinson Lee <vlee@vmware.com>
Tue, 21 Sep 2010 22:11:00 +0000 (15:11 -0700)
Fixes this GCC warning on MinGW build.
glut_event.c:255: warning: 'markWindowHidden' defined but not used

src/glut/glx/glut_event.c

index 4cdb814d76a40d0b075d13e3a5fe85ee9ae89be1..c450ee96b83c4609c7b02b45a105567c42fb69b0 100644 (file)
@@ -251,6 +251,8 @@ __glutRegisterEventParser(GLUTeventParser * parser)
   eventParserList = parser;
 }
 
+
+#if !defined(_WIN32)
 static void
 markWindowHidden(GLUTwindow * window)
 {
@@ -272,8 +274,6 @@ markWindowHidden(GLUTwindow * window)
   }
 }
 
-#if !defined(_WIN32)
-
 static void
 purgeStaleWindow(Window win)
 {