aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-03-21 23:40:18 +0000
committerIan Lance Taylor <ian@airs.com>2008-03-21 23:40:18 +0000
commit91edef2df14a6c33d4c99614af99b4f7ecdce718 (patch)
treeda6260616350916ddb189b0661a6d1e2c6cd4661
parentec531623a82417c7d745bbc8d4c634d71ce45e56 (diff)
downloadgdb-91edef2df14a6c33d4c99614af99b4f7ecdce718.zip
gdb-91edef2df14a6c33d4c99614af99b4f7ecdce718.tar.gz
gdb-91edef2df14a6c33d4c99614af99b4f7ecdce718.tar.bz2
* filenames.h: Add extern "C" when compiled with C++.
-rw-r--r--include/ChangeLog4
-rw-r--r--include/filenames.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index fd6c3d2..7e1bf20 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-21 Ian Lance Taylor <iant@google.com>
+
+ * filenames.h: Add extern "C" when compiled with C++.
+
2008-02-15 Alan Modra <amodra@bigpond.net.au>
* bfdlink.h (struct bfd_link_hash_table): Delete creator field.
diff --git a/include/filenames.h b/include/filenames.h
index 5338208..0d411cc 100644
--- a/include/filenames.h
+++ b/include/filenames.h
@@ -26,6 +26,10 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef FILENAMES_H
#define FILENAMES_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__) || defined (__CYGWIN__)
#ifndef HAVE_DOS_BASED_FILE_SYSTEM
@@ -49,4 +53,8 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
extern int filename_cmp (const char *s1, const char *s2);
#define FILENAME_CMP(s1, s2) filename_cmp(s1, s2)
+#ifdef __cplusplus
+}
+#endif
+
#endif /* FILENAMES_H */