fixed timer.c: wouldn't compile in C89 mode due to recent change which added two
[freeglut] / progs / demos / timer / timer.c
index 11557f7..5119870 100644 (file)
@@ -34,7 +34,8 @@ int menuID, subMenuSurround, subMenuCenter;
 
 void createMenuEntries(int which)
 {
-    for (int i = 0; i < sizeof(timerInts) / sizeof(*timerInts); i++)
+       int i;
+    for (i = 0; i < sizeof(timerInts) / sizeof(*timerInts); i++)
     {
         char temp[10] = {'\0'};
         /* flag current value */
@@ -51,7 +52,8 @@ void createMenuEntries(int which)
 
 void updateMenuEntries(int which)
 {
-    for (int i = 0; i < sizeof(timerInts) / sizeof(*timerInts); i++)
+       int i;
+    for (i = 0; i < sizeof(timerInts) / sizeof(*timerInts); i++)
     {
         char temp[10] = { '\0' };
         /* flag current value */