added --enable-wchar-prefer-char16

This commit is contained in:
2018-01-30 04:17:26 +00:00
parent 2fbfe3a71b
commit 3a9e278f0b
5 changed files with 56 additions and 13 deletions

View File

@ -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

View File

@ -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