luaffi icon indicating copy to clipboard operation
luaffi copied to clipboard

Can't build with VS2017

Open Stretto opened this issue 7 years ago • 0 comments

Trying to build, I get the errors:

B:\Temp\luaffi-master\msvc\stdbool.h(36): error C2632: 'char' followed by 'bool' is illegal B:\Temp\luaffi-master\msvc\stdbool.h(36): warning C4091: 'typedef ': ignored on left of 'unsigned char' when no variable is declared ctype.c B:\Temp\luaffi-master\msvc\stdbool.h(36): error C2632: 'char' followed by 'bool' is illegal B:\Temp\luaffi-master\msvc\stdbool.h(36): warning C4091: 'typedef ': ignored on left of 'unsigned char' when no variable is declared ffi.c B:\Temp\luaffi-master\msvc\stdbool.h(36): error C2632: 'char' followed by 'bool' is illegal B:\Temp\luaffi-master\msvc\stdbool.h(36): warning C4091: 'typedef ': ignored on left of 'unsigned char' when no variable is declared parser.c B:\Temp\luaffi-master\msvc\stdbool.h(36): error C2632: 'char' followed by 'bool' is illegal B:\Temp\luaffi-master\msvc\stdbool.h(36): warning C4091: 'typedef ': ignored on left of 'unsigned char' when no variable is declared

If I hack stdbool, I seem to get the same error but with complex.

Best I can tell, it has to do with something similar with

https://stackoverflow.com/questions/15191127/changes-meaning-from-typedef ?

Stretto avatar Jun 08 '17 11:06 Stretto