diff options
Diffstat (limited to 'gpxe/src/include/stddef.h')
-rw-r--r-- | gpxe/src/include/stddef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gpxe/src/include/stddef.h b/gpxe/src/include/stddef.h index 6f91d219..11ea9345 100644 --- a/gpxe/src/include/stddef.h +++ b/gpxe/src/include/stddef.h @@ -15,4 +15,10 @@ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) +/* __WCHAR_TYPE__ is defined by gcc and will change if -fshort-wchar is used */ +#ifndef __WCHAR_TYPE__ +#define __WCHAR_TYPE__ long int +#endif +typedef __WCHAR_TYPE__ wchar_t; + #endif /* STDDEF_H */ |