mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-07 06:04:59 +00:00
Detect XML_UNICODE_WCHAR_T with sizeof(wchar_t) != 2 (issue #33)
This commit is contained in:
parent
4be2cb5afc
commit
11f5e68e30
1 changed files with 4 additions and 1 deletions
|
@ -93,7 +93,10 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#ifdef XML_UNICODE_WCHAR_T
|
||||
#define XML_UNICODE
|
||||
# define XML_UNICODE
|
||||
# if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
|
||||
# error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef XML_UNICODE /* Information is UTF-16 encoded. */
|
||||
|
|
Loading…
Add table
Reference in a new issue