[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Make it possible to call canonicalize_filename_mode from C++.
From: |
James Youngman |
Subject: |
[PATCH] Make it possible to call canonicalize_filename_mode from C++. |
Date: |
Tue, 28 May 2019 13:21:16 +0100 |
* lib/canonicalize.h: use extern "C".
---
lib/canonicalize.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/canonicalize.h b/lib/canonicalize.h
index 2ffa1f681..d21b5b203 100644
--- a/lib/canonicalize.h
+++ b/lib/canonicalize.h
@@ -21,6 +21,10 @@
#define CAN_MODE_MASK (CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING)
+# ifdef __cplusplus
+extern "C" {
+# endif
+
enum canonicalize_mode_t
{
/* All components must exist. */
@@ -45,4 +49,8 @@ typedef enum canonicalize_mode_t canonicalize_mode_t;
The result is malloc'd. */
char *canonicalize_filename_mode (const char *, canonicalize_mode_t);
+# ifdef __cplusplus
+}
+# endif
+
#endif /* !CANONICALIZE_H_ */
--
2.11.0
- [PATCH] Make it possible to call canonicalize_filename_mode from C++.,
James Youngman <=