aboutsummaryrefslogtreecommitdiff
path: root/src/extlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/extlib.h')
-rw-r--r--src/extlib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/extlib.h b/src/extlib.h
index 5264195..80c79d0 100644
--- a/src/extlib.h
+++ b/src/extlib.h
@@ -19,7 +19,9 @@ void *malloc_secure (size_t len);
#endif
#if (__STDC_WANT_LIB_EXT1__ == 1)
+#ifndef RSIZE_MAX
#define RSIZE_MAX SIZE_MAX
+#endif
typedef int errno_t;
typedef size_t rsize_t;
@@ -60,5 +62,5 @@ char *strupr(char *s);
char *trim (char *s, int *rem_front, int *rem_back);
/// Match string s for old and replace it with string replace
-char *replace_str (char *s, char *old, char *replace);
+ char *replace_str (char *s, char *old, char *replace);