Mercurial > hg > octave-shane > gnulib-hg
changeset 11022:96c5472dd7a2
lib/arpa_inet.in.h: Add extern "C" block for C++.
* lib/arpa_inet.in.h: Add extern "C" block for C++.
author | Albert Chin-A-Young <china@thewrittenword.com> |
---|---|
date | Thu, 15 Jan 2009 12:38:28 -0600 |
parents | 9118fd8fdd2f |
children | 6e51bfec9586 |
files | lib/arpa_inet.in.h |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ inet_pton (af, src, dst)) #endif +#ifdef __cplusplus +} +#endif + #endif /* _GL_ARPA_INET_H */ #endif /* _GL_ARPA_INET_H */