From: Albert Chin-A-Young Date: Thu, 15 Jan 2009 18:38:28 +0000 (-0600) Subject: lib/arpa_inet.in.h: Add extern "C" block for C++. X-Git-Tag: v0.1~6464 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=0c2c2c499efa9af6825aae37fedf24caef6f9993;p=gnulib.git 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 index 54daf8437..315d9661f 100644 --- 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 */