emufreak / iAmiga

iAmiga sources
44 stars 17 forks source link

Cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' #72

Open mibry opened 6 years ago

mibry commented 6 years ago

Trying to compliling on iphone with ios11 I get the above error.

Cannot initialize a variable of type 'char ' with an rvalue of type 'const char ' The error is in the file below: /Users/test/Downloads/Source 2/libraries/sdl-mini/src/joystick/iOS/iCadeReaderView.mm:225:11: Cannot initialize a variable of type 'char ' with an rvalue of type 'const char '

mithrendal commented 6 years ago

Hi @mibry , this is already fixed, see this pull request #71 . Thanks for reporting....

starrshaw commented 4 years ago

This issue can be fixed with:

char const *p = strchr(ON_STATES, ch);