summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-21 23:35:07 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-21 23:35:07 +0000
commit3b4c5c14834320a9ecd943e8ad59ce4fcab66822 (patch)
tree2edd722e5a553f04646f715b36fef0bb2c729052 /include
parent3a30a2a98ab4f32f7ade4a9d52a26f3b2e1451d4 (diff)
downloadgcc-3b4c5c14834320a9ecd943e8ad59ce4fcab66822.tar.gz
* filenames.h: Add extern "C" when compiled with C++.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133440 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-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 0efe559c493..7cd23728a94 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-11 Bob Wilson <bob.wilson@acm.org>
* xtensa-config.h (XCHAL_HAVE_THREADPTR): Redefine to zero.
diff --git a/include/filenames.h b/include/filenames.h
index 5338208e024..0d411cc1264 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 */