arpa_inet: Use the common idioms with C++ support.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Dec 2010 22:56:33 +0000 (23:56 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 27 Dec 2010 00:30:14 +0000 (01:30 +0100)
commited4ce96d94a37ea75eb39d6a05b79f0b334cd2d0
tree5f84281dce348bc2dc41dff009286ee48f979f3e
parent7ab8f04c34ed2b5429010a275a830a45d445ce8e
arpa_inet: Use the common idioms with C++ support.

* lib/arpa_inet.in.h: Include c++defs.h.
(inet_ntop, inet_pton): Declare using the macros with C++ namespace
support.
* modules/arpa_inet (Depends-on): Add c++defs.
(Makefile.am): Substitute the contents of c++defs.h.
* modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
* modules/arpa_inet-c++-tests: New file.
* tests/test-arpa_inet-c++.cc: New file.
ChangeLog
lib/arpa_inet.in.h
modules/arpa_inet
modules/arpa_inet-c++-tests [new file with mode: 0644]
modules/arpa_inet-tests
tests/test-arpa_inet-c++.cc [new file with mode: 0644]