Removing a bunch of "static" declarations from the "fgPlatform" function definitions...
[freeglut] / src / Common / freeglut_init.c
index 0543840..eab4ac6 100644 (file)
@@ -100,9 +100,9 @@ SFG_State fgState = { { -1, -1, GL_FALSE },  /* Position */
 \r
 /* -- PRIVATE FUNCTIONS ---------------------------------------------------- */\r
 \r
-extern void fghInitialize( const char* displayName );\r
-extern void fghDeinitialiseInputDevices ( void );\r
-extern void fghCloseDisplay ( void );\r
+extern void fgPlatformInitialize( const char* displayName );\r
+extern void fgPlatformDeinitialiseInputDevices ( void );\r
+extern void fgPlatformCloseDisplay ( void );\r
 \r
 #if TARGET_HOST_POSIX_X11\r
 \r
@@ -246,7 +246,7 @@ int fgHintPresent(Window window, Atom property, Atom hint)
 /*\r
  * A call to this function should initialize all the display stuff...\r
  */\r
-static void fghInitialize( const char* displayName )\r
+void fgPlatformInitialize( const char* displayName )\r
 {\r
     fgDisplay.Display = XOpenDisplay( displayName );\r
 \r
@@ -437,7 +437,7 @@ void fghCloseInputDevices ( void )
 \r
 \r
 #if TARGET_HOST_POSIX_X11\r
-static void fghDeinitialiseInputDevices ( void )\r
+void fgPlatformDeinitialiseInputDevices ( void )\r
 {\r
        fghCloseInputDevices ();\r
 \r
@@ -446,7 +446,7 @@ static void fghDeinitialiseInputDevices ( void )
 }\r
 \r
 \r
-static void fghCloseDisplay ( void )\r
+void fgPlatformCloseDisplay ( void )\r
 {\r
     /*\r
      * Make sure all X-client data we have created will be destroyed on\r
@@ -506,7 +506,7 @@ void fgDeinitialize( void )
         free( timer );\r
     }\r
 \r
-       fghDeinitialiseInputDevices ();\r
+       fgPlatformDeinitialiseInputDevices ();\r
 \r
        fgState.MouseWheelTicks = 0;\r
 \r
@@ -560,13 +560,13 @@ void fgDeinitialize( void )
         fgState.ProgramName = NULL;\r
     }\r
 \r
-       fghCloseDisplay ();\r
+       fgPlatformCloseDisplay ();\r
 \r
     fgState.Initialised = GL_FALSE;\r
 }\r
 \r
 \r
-#if defined TARGET_HOST_MS_WINDOWS\r
+#if TARGET_HOST_MS_WINDOWS\r
 #define NoValue         0x0000\r
 #define XValue          0x0001\r
 #define YValue          0x0002\r
@@ -617,7 +617,7 @@ void FGAPIENTRY glutInit( int* pargc, char** argv )
      * in the program arguments, we will use the DISPLAY environment\r
      * variable for opening the X display (see code above):\r
      */\r
-    fghInitialize( displayName );\r
+    fgPlatformInitialize( displayName );\r
 \r
     /*\r
      * Geometry parsing deffered until here because we may need the screen\r