--- bit.c.orig 2015-09-14 19:27:44.000000000 -0700 +++ bit.c 2015-09-14 19:29:02.000000000 -0700 @@ -32,6 +32,10 @@ #include "lua.h" #include "lauxlib.h" +#ifndef LUA_NUMBER_DOUBLE +#define LUA_NUMBER_DOUBLE +#endif + #ifdef _MSC_VER /* MSVC is stuck in the last century and doesn't have C99's stdint.h. */ typedef __int32 int32_t;