Fix LLONG_MAX/LLONG_MIN in luaconf.h with old glibc versions

develop
lethosor 2016-08-13 11:40:30 -04:00
parent a1c25570df
commit 18a8512242
1 changed files with 9 additions and 0 deletions

@ -14,6 +14,15 @@
#define LUA_COMPAT_APIINTCASTS #define LUA_COMPAT_APIINTCASTS
#define LUA_COMPAT_IPAIRS #define LUA_COMPAT_IPAIRS
// Patch for old glibc versions
#if !defined(LLONG_MAX) && defined(__LONG_LONG_MAX__)
#define LLONG_MAX __LONG_LONG_MAX__
#endif
#if !defined(LLONG_MIN) && defined(__LONG_LONG_MAX__)
#define LLONG_MIN (-__LONG_LONG_MAX__ - 1LL)
#endif
/* /*
** =================================================================== ** ===================================================================
** Search for "@@" to find all configurable definitions. ** Search for "@@" to find all configurable definitions.