Add `extern "C"` to header
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 2 Sep 2021 03:51:15 +0000 (23:51 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 2 Sep 2021 03:51:39 +0000 (23:51 -0400)
Add the necessary declaration to make it possible to use argpar from a
C++ program.

Change-Id: Ifedffb8c636ab9878e7ef6836ce096c1636257e7
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
argpar/argpar.h

index 27503c56fd56944207b4cf60869196bf1ae51c64..f8575c8ebca9db16e28638424af5cd2cbe265301 100644 (file)
 
 #include <stdbool.h>
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /*!
 @mainpage
 
@@ -712,4 +716,8 @@ unsigned int argpar_iter_ingested_orig_args(const struct argpar_iter *iter);
 
 /// @}
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* ARGPAR_ARGPAR_H */
This page took 0.02406 seconds and 4 git commands to generate.