Three supported win32 compilation environments: MSVC, Cygwin and MingW32
[freeglut] / src / freeglut_callbacks.c
index 00d7ba1..7f2e23b 100644 (file)
@@ -41,7 +41,7 @@
 #define SET_CALLBACK(a)              \
     if( fgStructure.Window == NULL ) \
         return;                      \
-    FETCH_WCB( ( *( fgStructure.Window ) ), a ) = callback;
+    SET_WCB( ( *( fgStructure.Window ) ), a, callback );
 
 /*
  * Sets the Display callback for the current window