aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-14 18:01:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-14 18:01:53 -0300
commitf93051155c4a5e7b56f892c2b9222f38b40d3e81 (patch)
tree9e5a5747035de1d22cd7b1e6074a7b7720ecba00 /llimits.h
parent524ae9fc3dd8acc69d587c3ed0599d8c95205381 (diff)
downloadlua-f93051155c4a5e7b56f892c2b9222f38b40d3e81.tar.gz
lua-f93051155c4a5e7b56f892c2b9222f38b40d3e81.tar.bz2
lua-f93051155c4a5e7b56f892c2b9222f38b40d3e81.zip
ok to use `#elif' and `#if defined()'
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/llimits.h b/llimits.h
index 6ca0f676..1d480e88 100644
--- a/llimits.h
+++ b/llimits.h
@@ -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/*