projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33e3c85
)
lib/arpa_inet.in.h: Add extern "C" block for C++.
author
Albert Chin-A-Young
<china@thewrittenword.com>
Thu, 15 Jan 2009 18:38:28 +0000
(12:38 -0600)
committer
Simon Josefsson
<simon@josefsson.org>
Fri, 16 Jan 2009 12:08:00 +0000
(13:08 +0100)
* lib/arpa_inet.in.h: Add extern "C" block for C++.
lib/arpa_inet.in.h
patch
|
blob
|
history
diff --git
a/lib/arpa_inet.in.h
b/lib/arpa_inet.in.h
index 54daf843703d4ea0960eb88ef429669abf7fb693..315d9661f3bddc7ea211900ba6fced2442e791f3 100644
(file)
--- a/
lib/arpa_inet.in.h
+++ b/
lib/arpa_inet.in.h
@@
-38,6
+38,10
@@
/* The definition of GL_LINK_WARNING is copied here. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if @GNULIB_INET_NTOP@
# if !@HAVE_DECL_INET_NTOP@
/* Converts an internet address from internal format to a printable,
@@
-78,5
+82,9
@@
extern int inet_pton (int af, const char *restrict src, void *restrict dst);
inet_pton (af, src, dst))
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _GL_ARPA_INET_H */
#endif /* _GL_ARPA_INET_H */