> Surely a better approach is to correctly patch the source: My point is that luaconf.h is the right place to add such patches not llex.c: #if ANDROID #define getlocaledecpoint() '.' #endif We try to avoid platform-specific ifdefs in the C files.