I get this error when adding IMC2 Freedom2.2 Client Snippet.
imc.c:7492: error: 'for' loop initial declaration used outside C99 mode
#if defined(SMAUGSOCIAL) // lower-case the social name before asking the MUD static char lcSocName[LGST]; for (int i = 0; i < LGST && sname[i] != '\0'; i++) { lcSocName[i] = tolower(sname[i]); }
And while i am at it, i get a number of warnings like these:
imc.c: In function 'imcsetup': imc.c:5454: warning: assignment discards qualifiers from pointer target type imc.c:5455: warning: assignment discards qualifiers from pointer target type imc.c:5456: warning: assignment discards qualifiers from pointer target type imc.c: In function 'imctell':
The first one with the loop you just need to define "i" up with the other declarations. This slipped by because SmaugFUSS uses C++ where that syntax is legal.
And the second one with discarded qualifiers is because of the const fixes. You can change the definition of IMC_CMD in the imc.h file and see if that gets you around it for now.
imc.c:7492: error: 'for' loop initial declaration used outside C99 mode
Got any ideas?