X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Farpa_inet.in.h;h=315d9661f3bddc7ea211900ba6fced2442e791f3;hb=5709a7204dfd9a4fedf2cdbaa341bc6c540dadf3;hp=8d85749e0718ba0e91d89fdf47cb128a4c9754d2;hpb=939a939c8213263bfa5b5418580244438f58b829;p=gnulib.git diff --git a/lib/arpa_inet.in.h b/lib/arpa_inet.in.h index 8d85749e0..315d9661f 100644 --- a/lib/arpa_inet.in.h +++ b/lib/arpa_inet.in.h @@ -24,7 +24,9 @@ #if @HAVE_ARPA_INET_H@ +# if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ +# endif /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_ARPA_INET_H@ @@ -36,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, @@ -76,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 */