浏览代码

Only define __uwchar_t if wide char support is enabled.

Manuel Novoa III 23 年之前
父节点
当前提交
82b0adf80f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libc/sysdeps/linux/common/bits/uClibc_locale.h

+ 1 - 1
libc/sysdeps/linux/common/bits/uClibc_locale.h

@@ -63,7 +63,7 @@
 #define __LC_ALL			6
 
 /**********************************************************************/
-#ifdef _LIBC
+#if defined(_LIBC) && defined(__WCHAR_ENABLED)
 
 /* TODO: This really needs to be somewhere else... */
 #include <limits.h>