[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] Make it possible to call opendir_safer from C++.
From: |
James Youngman |
Subject: |
[PATCH 2/2] Make it possible to call opendir_safer from C++. |
Date: |
Tue, 28 May 2019 13:35:28 +0100 |
* lib/dirent-safer.h: use extern "C".
---
lib/dirent-safer.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/dirent-safer.h b/lib/dirent-safer.h
index 4d8e5ee92..6f6288e61 100644
--- a/lib/dirent-safer.h
+++ b/lib/dirent-safer.h
@@ -19,4 +19,12 @@
#include <dirent.h>
+# ifdef __cplusplus
+extern "C" {
+# endif
+
DIR *opendir_safer (const char *name);
+
+# ifdef __cplusplus
+}
+# endif
--
2.11.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 2/2] Make it possible to call opendir_safer from C++.,
James Youngman <=