mirror of https://github.com/ipxe/ipxe.git
[libc] Define wchar_t in a gcc-compatible way
gcc defines the magic __WCHAR_TYPE__ macro, in order to convey information about whether or not the user selected -fshort-wchar.pull/1/head
parent
19a0452205
commit
160b950af8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue