소스 검색

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>