diff options
author | Ian Lance Taylor <iant@google.com> | 2008-03-21 23:40:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-03-21 23:40:18 +0000 |
commit | b00c2ef98fa090eb395212c47b427cf3ebae0d79 (patch) | |
tree | e4d9244227b1ba053f18d1154847a7c3d106db3e /include/filenames.h | |
parent | b916272a4b4a8badead8dd2f78ef9c19dd5ff40b (diff) | |
download | newlib-b00c2ef98fa090eb395212c47b427cf3ebae0d79.zip newlib-b00c2ef98fa090eb395212c47b427cf3ebae0d79.tar.gz newlib-b00c2ef98fa090eb395212c47b427cf3ebae0d79.tar.bz2 |
* filenames.h: Add extern "C" when compiled with C++.
Diffstat (limited to 'include/filenames.h')
-rw-r--r-- | include/filenames.h | 8 |
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 */ |