glut: Minor cleanups.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 26 Jan 2009 10:44:34 +0000 (10:44 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 26 Jan 2009 20:28:04 +0000 (20:28 +0000)
src/glut/glx/glut_event.c
src/glut/glx/glut_input.c
src/glut/glx/win32_winproc.c

index cf34e05..d6d9638 100644 (file)
@@ -1343,9 +1343,7 @@ processWindowWorkList(GLUTwindow * window)
   }
 }
 
-#ifndef _WIN32
 static  /* X11 implementations do not need this global. */
-#endif
 void
 __glutProcessWindowWorkLists(void)
 {
index a76ff9a..7d2eda0 100644 (file)
@@ -295,6 +295,7 @@ __glutProcessDeviceEvents(XEvent * event)
 static GLUTeventParser eventParser =
 {__glutProcessDeviceEvents, NULL};
 
+#if !defined(_WIN32)
 static void
 addDeviceEventParser(void)
 {
@@ -305,6 +306,7 @@ addDeviceEventParser(void)
   been_here = True;
   __glutRegisterEventParser(&eventParser);
 }
+#endif
 
 static int
 probeDevices(void)
index e1fc785..4a9dc37 100644 (file)
 extern unsigned __glutMenuButton;
 extern GLUTidleCB __glutIdleFunc;
 extern GLUTtimer *__glutTimerList;
-extern GLUTmenuItem *__glutGetUniqueMenuItem(GLUTmenu * menu, int unique);
+extern GLUTmenuItem *__glutGetUniqueMenuItem(GLUTmenu * menu, UINT unique);
 static HMENU __glutHMenu;
 
-void
+static void
 updateWindowState(GLUTwindow *window, int visState)
 {
   GLUTwindow* child;