Mercurial > hg > octave-shane > gnulib-hg
diff modules/arpa_inet-c++-tests @ 14036:c475f1b6d204
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 26 Dec 2010 23:56:33 +0100 |
parents | |
children |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/modules/arpa_inet-c++-tests @@ -0,0 +1,19 @@ +Files: +tests/test-arpa_inet-c++.cc +tests/signature.h + +Status: +c++-test + +Depends-on: +ansi-c++-opt + +configure.ac: + +Makefile.am: +if ANSICXX +TESTS += test-arpa_inet-c++ +check_PROGRAMS += test-arpa_inet-c++ +test_arpa_inet_c___SOURCES = test-arpa_inet-c++.cc +test_arpa_inet_c___LDADD = $(LDADD) $(INET_NTOP_LIB) $(INET_PTON_LIB) $(LIBSOCKET) +endif