starwing / luautf8

a utf-8 support module for Lua and LuaJIT.
MIT License
406 stars 67 forks source link

Fix compile error on CentOS6 #29

Closed komainu8 closed 4 years ago

komainu8 commented 4 years ago

Hello, luautf8 occurs compile error on CentOS6.

gcc -O2 -fPIC -I/usr/include -c lutf8lib.c -o lutf8lib.o
In file included from lutf8lib.c:116:
unidata.h:9: error: redefinition of typedef 'utfint'
lutf8lib.c:14: note: previous declaration of 'utfint' was here

We can use the feature that redefinition of typedef from C11. However, CentOS6's GCC does not support C11. Therefore luautf8 occurs compile error.

Thanks,

starwing commented 4 years ago

Thanks for the catch!

ghost commented 4 years ago

@starwing @komainu8 thanks for the fix! do you know when this will be released?