diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-19 18:34:46 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-19 18:34:46 -0400 |
commit | 99934aedca9a51d3fa1aa9848f7522880b706a9c (patch) | |
tree | 3352d5325f3bd633581276dd7a70450371d58078 /gcc/fixincludes | |
parent | e206854a7a4ca6b6f8892ca01b1d74be0ca19cfc (diff) | |
download | gcc-99934aedca9a51d3fa1aa9848f7522880b706a9c.zip gcc-99934aedca9a51d3fa1aa9848f7522880b706a9c.tar.gz gcc-99934aedca9a51d3fa1aa9848f7522880b706a9c.tar.bz2 |
Don't define wchar_t under C++.
From-SVN: r10014
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-x | gcc/fixincludes | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index c5828e6..bdd5afe 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -371,6 +371,10 @@ for file in sys/types.h stdlib.h sys/stdtypes.h stddef.h memory.h unistd.h; do -e '/typedef[ ][ ]*[a-z_][ a-z_]*[ ]wchar_t/i\ #ifndef __WCHAR_TYPE__\ #define __WCHAR_TYPE__ int\ +#endif\ +#ifndef __cplusplus +' \ + -e '/typedef[ ][ ]*[a-z_][ a-z_]*[ ]wchar_t/a\ #endif ' \ -e 's/typedef[ ][ ]*[a-z_][ a-z_]*[ ]wchar_t/typedef __WCHAR_TYPE__ wchar_t/' \ |