diff options
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.53 2003/04/28 19:26:16 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.54 2003/04/28 19:57:50 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other `installation-dependent' definitions | 3 | ** Limits, basic types, and some other `installation-dependent' definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -22,15 +22,13 @@ | |||
22 | /* avoid overflows in comparison */ | 22 | /* avoid overflows in comparison */ |
23 | #if INT_MAX-20 < 32760 | 23 | #if INT_MAX-20 < 32760 |
24 | #define BITS_INT 16 | 24 | #define BITS_INT 16 |
25 | #else | 25 | #elif INT_MAX > 2147483640L |
26 | #if INT_MAX > 2147483640L | ||
27 | /* machine has at least 32 bits */ | 26 | /* machine has at least 32 bits */ |
28 | #define BITS_INT 32 | 27 | #define BITS_INT 32 |
29 | #else | 28 | #else |
30 | #error "you must define BITS_INT with number of bits in an integer" | 29 | #error "you must define BITS_INT with number of bits in an integer" |
31 | #endif | 30 | #endif |
32 | #endif | 31 | #endif |
33 | #endif | ||
34 | 32 | ||
35 | 33 | ||
36 | /* | 34 | /* |