浏览代码

Fix an ifdef mismatch.

Manuel Novoa III 22 年之前
父节点
当前提交
fa28831a8c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libc/stdio/printf.c

+ 2 - 2
libc/stdio/printf.c

@@ -443,9 +443,9 @@ size_t parse_printf_format(register const char *template,
 
 
 int _ppfs_init(register ppfs_t *ppfs, const char *fmt0)
 int _ppfs_init(register ppfs_t *ppfs, const char *fmt0)
 {
 {
-#if defined(__UCLIBC_HAS_WCHAR__) && defined(__UCLIBC_HAS_LOCALE__)
+#ifdef __UCLIBC_HAS_WCHAR__
 	static const char invalid_mbs[] = "Invalid multibyte format string.";
 	static const char invalid_mbs[] = "Invalid multibyte format string.";
-#endif /* defined(__UCLIBC_HAS_WCHAR__) && defined(__UCLIBC_HAS_LOCALE__) */
+#endif /* __UCLIBC_HAS_WCHAR__ */
 	int r;
 	int r;
 
 
 	/* First, zero out everything... argnumber[], argtype[], argptr[] */
 	/* First, zero out everything... argnumber[], argtype[], argptr[] */