aboutsummaryrefslogtreecommitdiff
path: root/src/extlib.h
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-07-14 17:44:20 +0200
committeraxtloss <axtlos@getcryst.al>2024-07-14 17:44:20 +0200
commit58fbbbca5a1f6b94885ce47e46c28e1cd03583d7 (patch)
treea9c53614295d8a6733f356679c0b633c5ce48e7c /src/extlib.h
parent1a4696492e3cd478080e438950a7664a68fefcd6 (diff)
downloadextlib-58fbbbca5a1f6b94885ce47e46c28e1cd03583d7.tar.gz
extlib-58fbbbca5a1f6b94885ce47e46c28e1cd03583d7.tar.bz2
move to autotools
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);