BlueM / cliclick

macOS CLI tool for emulating mouse and keyboard events
https://www.bluem.net
Other
1.62k stars 122 forks source link

Declare for loop variable outside of loop #113

Closed ryandesign closed 4 years ago

ryandesign commented 4 years ago

Old compilers that default to C89 mode complain:

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.

BlueM commented 4 years ago

Thanks