X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=progs%2Fdemos%2Ftimer%2Ftimer.c;h=51198707d3e6cba2479673144aca284ea6df43bb;hb=db3cff25e0dcdfb5a999bb677e0f423bc3201b8f;hp=11557f7a3696c450b9318aa57eee5abe32944441;hpb=23e4dc7c9227e520623d492af7a6a874b29f64b7;p=freeglut diff --git a/progs/demos/timer/timer.c b/progs/demos/timer/timer.c index 11557f7..5119870 100644 --- a/progs/demos/timer/timer.c +++ b/progs/demos/timer/timer.c @@ -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 */