summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2001-07-11 13:47:45 +0000
committerDavid McCullough <davidm@snapgear.com>2001-07-11 13:47:45 +0000
commitce8ee8d9b401c9c2828df3457815c2f4ceed4900 (patch)
treefc27874f9403ddfd24357f56d87d6ffe08d8ae19 /include/string.h
parent5882811b88767f26c75913ca2b2fffd05595a7b5 (diff)
Added __BEGIN_DECLS and __END_DECLS to the files that didn't have
it and that I could see needed it. Should be pretty low impact as these are only defined when using C++.
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index 939b1a4b5..7122b7959 100644
--- a/include/string.h
+++ b/include/string.h
@@ -5,6 +5,7 @@
#include <sys/types.h>
#include <stddef.h>
+__BEGIN_DECLS
/* Basic string functions */
/* Return the length of S. */
@@ -117,7 +118,7 @@ extern size_t strspn __P ((__const char *__s, __const char *__accept));
extern char *strsignal __P ((int __sig));
/* More BSD compatabilty */
-int bcmp(const void *s1, const void *s2, size_t n);
+extern int bcmp(const void *s1, const void *s2, size_t n);
/* Linux silly hour */
char *strfry __P ((char *));
@@ -147,4 +148,6 @@ extern size_t strnlen __P ((__const char *__string, size_t __maxlen));
(char *) memcpy (__new, __old, __len); \
}))
+__END_DECLS
+
#endif