for loops with a loop variable declared in the statement itself.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1639
7f0cb862-5218-0410-a997-
914c9d46530a
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 */
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 */