diff options
author | James Youngman <jay@gnu.org> | 2019-05-28 13:35:28 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-05-28 23:04:33 +0200 |
commit | 1b7fed3b04326a09a8e47636c540b7c5f9761598 (patch) | |
tree | 858361c2cfaf3bf00b43e50f9395f5f5fd065882 | |
parent | a8f178bd8c7b8e243f58382ace1c2575fde5afe4 (diff) | |
download | gnulib-1b7fed3b04326a09a8e47636c540b7c5f9761598.tar.gz |
dirent-safer: Make opendir_safer usable from C++.
* lib/dirent-safer.h: use extern "C".
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/dirent-safer.h | 8 |
2 files changed, 13 insertions, 0 deletions
@@ -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 |