From: Alexandre Duret-Lutz Date: Fri, 17 May 2013 17:01:15 +0000 (+0200) Subject: argmatch: port to C++ X-Git-Tag: v0.1~124 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=6e5f53c09490a510344a65d26f5e3989a048fcdf argmatch: port to C++ * lib/argmatch.h [__cplusplus]: Add extern "C". --- diff --git a/ChangeLog b/ChangeLog index c8ea9e019..de7f53993 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2013-05-17 Alexandre Duret-Lutz + argmatch: port to C++ + * lib/argmatch.h [__cplusplus]: Add extern "C". + argp: typo fix * lib/argp-help.c: Typo in comment. diff --git a/lib/argmatch.h b/lib/argmatch.h index 2e0275cfe..e4c802714 100644 --- a/lib/argmatch.h +++ b/lib/argmatch.h @@ -26,6 +26,10 @@ # include "verify.h" +#ifdef __cplusplus +extern "C" { +#endif + # define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array)) /* Assert there are as many real arguments as there are values @@ -100,4 +104,8 @@ char const *argmatch_to_argument (char const *value, argmatch_to_argument (Value, Arglist, \ (char const *) (Vallist), sizeof *(Vallist)) +#ifdef __cplusplus +} +#endif + #endif /* ARGMATCH_H_ */