aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/luaconf.h b/luaconf.h
index e6271b80..66dca6bf 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -515,7 +515,6 @@
515*/ 515*/
516#define LUA_UNSIGNED unsigned LUAI_UACINT 516#define LUA_UNSIGNED unsigned LUAI_UACINT
517 517
518#define LUA_MAXUNSIGNED (~(lua_Unsigned)0)
519 518
520#define LUA_UNSIGNEDBITS (sizeof(LUA_UNSIGNED) * CHAR_BIT) 519#define LUA_UNSIGNEDBITS (sizeof(LUA_UNSIGNED) * CHAR_BIT)
521 520
@@ -530,6 +529,8 @@
530#define LUA_MAXINTEGER INT_MAX 529#define LUA_MAXINTEGER INT_MAX
531#define LUA_MININTEGER INT_MIN 530#define LUA_MININTEGER INT_MIN
532 531
532#define LUA_MAXUNSIGNED UINT_MAX
533
533#elif LUA_INT_TYPE == LUA_INT_LONG /* }{ long */ 534#elif LUA_INT_TYPE == LUA_INT_LONG /* }{ long */
534 535
535#define LUA_INTEGER long 536#define LUA_INTEGER long
@@ -538,6 +539,8 @@
538#define LUA_MAXINTEGER LONG_MAX 539#define LUA_MAXINTEGER LONG_MAX
539#define LUA_MININTEGER LONG_MIN 540#define LUA_MININTEGER LONG_MIN
540 541
542#define LUA_MAXUNSIGNED ULONG_MAX
543
541#elif LUA_INT_TYPE == LUA_INT_LONGLONG /* }{ long long */ 544#elif LUA_INT_TYPE == LUA_INT_LONGLONG /* }{ long long */
542 545
543/* use presence of macro LLONG_MAX as proxy for C99 compliance */ 546/* use presence of macro LLONG_MAX as proxy for C99 compliance */
@@ -550,6 +553,8 @@
550#define LUA_MAXINTEGER LLONG_MAX 553#define LUA_MAXINTEGER LLONG_MAX
551#define LUA_MININTEGER LLONG_MIN 554#define LUA_MININTEGER LLONG_MIN
552 555
556#define LUA_MAXUNSIGNED ULLONG_MAX
557
553#elif defined(LUA_USE_WINDOWS) /* }{ */ 558#elif defined(LUA_USE_WINDOWS) /* }{ */
554/* in Windows, can use specific Windows types */ 559/* in Windows, can use specific Windows types */
555 560
@@ -559,6 +564,8 @@
559#define LUA_MAXINTEGER _I64_MAX 564#define LUA_MAXINTEGER _I64_MAX
560#define LUA_MININTEGER _I64_MIN 565#define LUA_MININTEGER _I64_MIN
561 566
567#define LUA_MAXUNSIGNED _UI64_MAX
568
562#else /* }{ */ 569#else /* }{ */
563 570
564#error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \ 571#error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \