aboutsummaryrefslogtreecommitdiff
path: root/include/filenames.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-21 23:35:07 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2008-03-21 23:35:07 +0000
commit464509751a83f32195e042d9e2f08f1022081c2f (patch)
tree2edd722e5a553f04646f715b36fef0bb2c729052 /include/filenames.h
parente8afc0cb111ebab17cb699d54342aa9a59639935 (diff)
downloadgcc-464509751a83f32195e042d9e2f08f1022081c2f.zip
gcc-464509751a83f32195e042d9e2f08f1022081c2f.tar.gz
gcc-464509751a83f32195e042d9e2f08f1022081c2f.tar.bz2
* filenames.h: Add extern "C" when compiled with C++.
From-SVN: r133440
Diffstat (limited to 'include/filenames.h')
-rw-r--r--include/filenames.h8
1 files changed, 8 insertions, 0 deletions
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 */