# HG changeset patch # User Albert Chin-A-Young # Date 1232044708 21600 # Node ID 96c5472dd7a2036ca30802fbffb876d442202a37 # Parent 9118fd8fdd2f9d34428e376ccaeb43e15019b777 lib/arpa_inet.in.h: Add extern "C" block for C++. * lib/arpa_inet.in.h: Add extern "C" block for C++. diff --git a/lib/arpa_inet.in.h b/lib/arpa_inet.in.h --- 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 */