summaryrefslogtreecommitdiffstats
path: root/gettext-tools/lib/stpncpy.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-08-24 17:33:25 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:53 +0200
commitc0b0ba434b6561011ed2606ec9ffe79d379cf342 (patch)
treec1102ea8ba420ba35eb46ce46a543f18448a18ef /gettext-tools/lib/stpncpy.h
parent7195aa9cd54c131804ab63acc0b5d8494a94b0c7 (diff)
downloadexternal_gettext-c0b0ba434b6561011ed2606ec9ffe79d379cf342.zip
external_gettext-c0b0ba434b6561011ed2606ec9ffe79d379cf342.tar.gz
external_gettext-c0b0ba434b6561011ed2606ec9ffe79d379cf342.tar.bz2
Add extern "C" { ... }.
Diffstat (limited to 'gettext-tools/lib/stpncpy.h')
-rw-r--r--gettext-tools/lib/stpncpy.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gettext-tools/lib/stpncpy.h b/gettext-tools/lib/stpncpy.h
index ad35861..6dc56d8 100644
--- a/gettext-tools/lib/stpncpy.h
+++ b/gettext-tools/lib/stpncpy.h
@@ -20,6 +20,12 @@
#include <string.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#ifndef __GNU_LIBRARY__
/* Copy no more than N characters of SRC to DST, returning the address of
@@ -31,4 +37,10 @@ extern char *gnu_stpncpy (char *dst, const char *src, size_t n);
#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _STPNCPY_H */