[PATCH] compile error
Roman Kononov
roman at xtremedatainc.com
Wed Jan 24 15:08:39 UTC 2007
Hello,
When __UCLIBC_HAS_WCHAR__ is undefined, there are busybox compile
errors in two "#if __UCLIBC_HAS_WCHAR__" places. They are supposed
to be "#ifdef __UCLIBC_HAS_WCHAR__"
Regards, Roman
----------------------------------------------
Index: include/inttypes.h
===================================================================
--- include/inttypes.h (revision 17475)
+++ include/inttypes.h (working copy)
@@ -27,7 +27,7 @@
/* Get the type definitions. */
#include <stdint.h>
-#if __UCLIBC_HAS_WCHAR__
+#ifdef __UCLIBC_HAS_WCHAR__
/* Get a definition for wchar_t. But we must not define wchar_t itself. */
#ifndef ____gwchar_t_defined
# ifdef __cplusplus
@@ -311,7 +311,7 @@
extern uintmax_t strtoumax (__const char *__restrict __nptr,
char ** __restrict __endptr, int __base) __THROW;
-#if __UCLIBC_HAS_WCHAR__
+#ifdef __UCLIBC_HAS_WCHAR__
/* Like `wcstol' but convert to `intmax_t'. */
extern intmax_t wcstoimax (__const __gwchar_t *__restrict __nptr,
__gwchar_t **__restrict __endptr, int __base)
More information about the uClibc
mailing list