summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-11-15 18:55:13 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-11-15 18:55:13 +1100
commit134a74f4e0cf750931f1125beb2a3f40c54c8809 (patch)
treeae3482e555e808df4674df5e5bf4a055d63e1744 /defines.h
parent9c6d0a3a1ed77989d8c5436d8c3cc6c7045c0197 (diff)
Add SSIZE_MAX when we define ssize_t.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index b3a2b43d..03212de6 100644
--- a/defines.h
+++ b/defines.h
@@ -336,6 +336,7 @@ typedef unsigned int size_t;
#ifndef HAVE_SSIZE_T
typedef int ssize_t;
+#define SSIZE_MAX INT_MAX
# define HAVE_SSIZE_T
#endif /* HAVE_SSIZE_T */