summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2019-05-28 13:35:28 +0100
committerBruno Haible <bruno@clisp.org>2019-05-28 23:04:33 +0200
commit1b7fed3b04326a09a8e47636c540b7c5f9761598 (patch)
tree858361c2cfaf3bf00b43e50f9395f5f5fd065882
parenta8f178bd8c7b8e243f58382ace1c2575fde5afe4 (diff)
downloadgnulib-1b7fed3b04326a09a8e47636c540b7c5f9761598.tar.gz
dirent-safer: Make opendir_safer usable from C++.
* lib/dirent-safer.h: use extern "C".
-rw-r--r--ChangeLog5
-rw-r--r--lib/dirent-safer.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d274eeb38d..fb27c41d21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2019-05-28 James Youngman <jay@gnu.org>
+ dirent-safer: Make opendir_safer usable from C++.
+ * lib/dirent-safer.h: use extern "C".
+
+2019-05-28 James Youngman <jay@gnu.org>
+
canonicalize: Make canonicalize_filename_mode usable from C++.
* lib/canonicalize.h: use extern "C".
diff --git a/lib/dirent-safer.h b/lib/dirent-safer.h
index 4d8e5ee922..28630f79b6 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