summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2012-12-04 07:50:03 -0800
committerTim Rice <tim@multitalents.net>2012-12-04 07:50:03 -0800
commit96ce9a1e45a2f2a1b8be7b97fde07e629dd9fa05 (patch)
tree0a1ef9bb5304aa8bbde97b3d94ef2af1ac1873b1 /defines.h
parent8b48982a569596f40f9ad16baac9c8c42c8a96aa (diff)
20121205
- (tim) [defines.h] Some platforms are missing ULLONG_MAX. Feedback djm@.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 53f83a14..54de062d 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.169 2012/02/15 04:13:06 tim Exp $ */
+/* $Id: defines.h,v 1.170 2012/12/04 15:50:04 tim Exp $ */
/* Constants */
@@ -283,6 +283,10 @@ typedef unsigned char u_char;
# define HAVE_U_CHAR
#endif /* HAVE_U_CHAR */
+#ifndef ULLONG_MAX
+# define ULLONG_MAX ((unsigned long long)-1)
+#endif
+
#ifndef SIZE_T_MAX
#define SIZE_T_MAX ULONG_MAX
#endif /* SIZE_T_MAX */