diff --git a/gcc/c-common.c b/gcc/c-common.c index 99b84b2ce46..979f30b0553 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -27,6 +27,14 @@ Boston, MA 02111-1307, USA. */ #include #include +#ifndef WCHAR_TYPE_SIZE +#ifdef INT_TYPE_SIZE +#define WCHAR_TYPE_SIZE INT_TYPE_SIZE +#else +#define WCHAR_TYPE_SIZE BITS_PER_WORD +#endif +#endif + extern struct obstack permanent_obstack; enum attrs {A_PACKED, A_NOCOMMON, A_NORETURN, A_CONST, A_T_UNION,