projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add extern "C" for C++.
[gnulib.git]
/
lib
/
stpcpy.h
diff --git
a/lib/stpcpy.h
b/lib/stpcpy.h
index
b579c5c
..
5e737cf
100644
(file)
--- a/
lib/stpcpy.h
+++ b/
lib/stpcpy.h
@@
-25,9
+25,17
@@
#else
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Copy SRC to DST, returning the address of the terminating '\0' in DST. */
extern char *stpcpy (char *dst, const char *src);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif /* _STPCPY_H */