summaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal/jemalloc_internal_decls.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/jemalloc/internal/jemalloc_internal_decls.h')
-rw-r--r--include/jemalloc/internal/jemalloc_internal_decls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_decls.h b/include/jemalloc/internal/jemalloc_internal_decls.h
index d75de0b..1efdb56 100644
--- a/include/jemalloc/internal/jemalloc_internal_decls.h
+++ b/include/jemalloc/internal/jemalloc_internal_decls.h
@@ -41,6 +41,9 @@
#ifndef SIZE_T_MAX
# define SIZE_T_MAX SIZE_MAX
#endif
+#ifndef SSIZE_MAX
+# define SSIZE_MAX ((ssize_t)(SIZE_T_MAX >> 1))
+#endif
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>