summaryrefslogtreecommitdiffstats
path: root/compat/string.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-06 08:44:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-06 08:44:15 (GMT)
commitf7bdf7cfb1afd30dd877f66915568e794b901795 (patch)
treefe5221346027b55528dfbca2331fc4a88cd44b62 /compat/string.h
parentb7c4b811ec358b518d9a5ceaf204a84a5e5b59a8 (diff)
downloadtcl-f7bdf7cfb1afd30dd877f66915568e794b901795.zip
tcl-f7bdf7cfb1afd30dd877f66915568e794b901795.tar.gz
tcl-f7bdf7cfb1afd30dd877f66915568e794b901795.tar.bz2
Adapt function signatures in compat/string.h to what's normal nowadays
Diffstat (limited to 'compat/string.h')
-rw-r--r--compat/string.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/compat/string.h b/compat/string.h
index 42be10c..aa889f2 100644
--- a/compat/string.h
+++ b/compat/string.h
@@ -21,19 +21,15 @@
#include <sys/types.h>
-#ifdef __APPLE__
extern void * memchr(const void *s, int c, size_t n);
-#else
-extern char * memchr(const void *s, int c, size_t n);
-#endif
extern int memcmp(const void *s1, const void *s2, size_t n);
-extern char * memcpy(void *t, const void *f, size_t n);
+extern void * memcpy(void *t, const void *f, size_t n);
#ifdef NO_MEMMOVE
#define memmove(d,s,n) (bcopy((s), (d), (n)))
#else
extern char * memmove(void *t, const void *f, size_t n);
#endif
-extern char * memset(void *s, int c, size_t n);
+extern void * memset(void *s, int c, size_t n);
extern int strcasecmp(const char *s1, const char *s2);
extern char * strcat(char *dst, const char *src);