[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] argmatch: port to C++
From: |
Alexandre Duret-Lutz |
Subject: |
[PATCH 2/2] argmatch: port to C++ |
Date: |
Fri, 17 May 2013 19:01:15 +0200 |
* lib/argmatch.h [__cplusplus]: Add extern "C".
---
lib/argmatch.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/argmatch.h b/lib/argmatch.h
index 2e0275c..e4c8027 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_ */
--
1.7.10.4