summaryrefslogtreecommitdiff
path: root/src/flexint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/flexint.h')
-rw-r--r--src/flexint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/flexint.h b/src/flexint.h
index f9fa80c..43bb3a8 100644
--- a/src/flexint.h
+++ b/src/flexint.h
@@ -58,6 +58,10 @@ typedef unsigned int flex_uint32_t;
#define UINT32_MAX (4294967295U)
#endif
+#ifndef SIZE_MAX
+#define SIZE_MAX (~(size_t)0)
+#endif
+
#endif /* ! C99 */
#endif /* ! FLEXINT_H */