diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-10-15 00:28:49 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-10-15 00:28:49 -0400 |
commit | 1d3c2768078937eeb2d4d265e34f7e549ccda5f1 (patch) | |
tree | b08ef3f00f96e1c9db2c9379208bc179ff8268e9 /arch/arm/bits/alltypes.h.sh | |
parent | 2bb75db611f1ce534073be20e5834cc75a7c531c (diff) | |
download | musl-1d3c2768078937eeb2d4d265e34f7e549ccda5f1.tar.gz musl-1d3c2768078937eeb2d4d265e34f7e549ccda5f1.tar.bz2 musl-1d3c2768078937eeb2d4d265e34f7e549ccda5f1.tar.xz musl-1d3c2768078937eeb2d4d265e34f7e549ccda5f1.zip |
don't define wchar_t on c++
it's a keyword in c++ (wtf). i'm not sure this is the cleanest
solution; it might be better to avoid ever defining __NEED_wchar_t on
c++. but in any case, this works for now.
Diffstat (limited to 'arch/arm/bits/alltypes.h.sh')
-rwxr-xr-x | arch/arm/bits/alltypes.h.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/bits/alltypes.h.sh b/arch/arm/bits/alltypes.h.sh index 11f1d93f..af73e664 100755 --- a/arch/arm/bits/alltypes.h.sh +++ b/arch/arm/bits/alltypes.h.sh @@ -22,7 +22,9 @@ TYPEDEF long ptrdiff_t; TYPEDEF __builtin_va_list va_list; +#ifndef __cplusplus TYPEDEF unsigned wchar_t; +#endif TYPEDEF int wint_t; TYPEDEF long wctrans_t; TYPEDEF long wctype_t; |