]> Savannah Git Hosting - gnulib.git/commitdiff
dirname: support compilation with C++
authorWerner LEMBERG <wl@gnu.org>
Sun, 21 Sep 2014 15:10:15 +0000 (17:10 +0200)
committerPádraig Brady <P@draigBrady.com>
Sun, 21 Sep 2014 17:47:19 +0000 (18:47 +0100)
* lib/dirname.h: Add necessary C linkage declarations.

ChangeLog
lib/dirname.h

index 58a65117845a85f751d342c9f2b6fec1ff0d234b..9ac551db27e1a35f2fd032f77abf0e9e230f6ceb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-21  Werner Lemberg  <wl@gnu.org>
+
+       dirname: support compilation with C++
+       * lib/dirname.h: Add necessary C linkage declarations.
+
 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
 
        qsort_r: include <config.h>
index a1b700932674b9bc3bb30885fb0ebf2898fc46d7..657d265321768e7045dcdab81a597957362a04b4 100644 (file)
 #  define DOUBLE_SLASH_IS_DISTINCT_ROOT 0
 # endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 # if GNULIB_DIRNAME
 char *base_name (char const *file);
 char *dir_name (char const *file);
@@ -43,4 +47,8 @@ char *last_component (char const *file) _GL_ATTRIBUTE_PURE;
 
 bool strip_trailing_slashes (char *file);
 
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
 #endif /* not DIRNAME_H_ */