# HG changeset patch # User Alexandre Duret-Lutz # Date 1368810075 -7200 # Node ID 015e28e70535efbfd63668e2e2e76dc5312f2b2d # Parent 6550127da19623cdf98c6e927dd965426a816c72 argmatch: port to C++ * lib/argmatch.h [__cplusplus]: Add extern "C". diff -r 6550127da196 -r 015e28e70535 ChangeLog --- a/ChangeLog Fri May 17 19:01:14 2013 +0200 +++ b/ChangeLog Fri May 17 19:01:15 2013 +0200 @@ -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 -r 6550127da196 -r 015e28e70535 lib/argmatch.h --- a/lib/argmatch.h Fri May 17 19:01:14 2013 +0200 +++ b/lib/argmatch.h Fri May 17 19:01:15 2013 +0200 @@ -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 @@ argmatch_to_argument (Value, Arglist, \ (char const *) (Vallist), sizeof *(Vallist)) +#ifdef __cplusplus +} +#endif + #endif /* ARGMATCH_H_ */