added --enable-wchar-prefer-char16
This commit is contained in:
@ -1071,6 +1071,9 @@
|
||||
/* use the syscall() function to invoke a system call */
|
||||
#undef QSE_USE_SYSCALL
|
||||
|
||||
/* specify preference for char16_t as qse_wchar_t */
|
||||
#undef QSE_WCHAR_PREFER_CHAR16
|
||||
|
||||
/* The size of `char', as computed by sizeof. */
|
||||
#undef SIZEOF_CHAR
|
||||
|
||||
|
@ -537,13 +537,12 @@ typedef int qse_mcint_t;
|
||||
* #QSE_WCHAR_EOF.
|
||||
*/
|
||||
|
||||
#if /*defined(QSE_PREFER_CHAR16_T) &&*/ defined(__GNUC__) && defined(__CHAR16_TYPE__) && \
|
||||
#if defined(QSE_WCHAR_PREFER_CHAR16) && defined(__GNUC__) && defined(__CHAR16_TYPE__) && \
|
||||
defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||
/* C11 */
|
||||
typedef __CHAR16_TYPE__ qse_wchar_t;
|
||||
typedef qse_uint16_t qse_wchau_t;
|
||||
|
||||
|
||||
#if (QSE_SIZEOF_INT > 2)
|
||||
typedef int qse_wcint_t;
|
||||
#else
|
||||
|
Reference in New Issue
Block a user