error: ‘for’ loop initial declaration used outside C99 mode
This is the only change needed to regain C89 compatibility.
Alternately, if you are no longer interested in maintaining C89 compatibility, you could specify C99 mode in the Xcode project instead of relying on the compiler's default language mode.
Old compilers that default to C89 mode complain:
This is the only change needed to regain C89 compatibility.
Alternately, if you are no longer interested in maintaining C89 compatibility, you could specify C99 mode in the Xcode project instead of relying on the compiler's default language mode.