From f2820ddafbd7265ce66fcbcf2d63aee68f987e01 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 5 Feb 2007 12:33:30 +0000 Subject: - silence warning about using an undefined token --- include/inttypes.h | 4 ++-- include/obstack.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/inttypes.h b/include/inttypes.h index 6e0210087..6ae329537 100644 --- a/include/inttypes.h +++ b/include/inttypes.h @@ -27,7 +27,7 @@ /* Get the type definitions. */ #include -#if __UCLIBC_HAS_WCHAR__ +#if defined __UCLIBC_HAS_WCHAR__ && __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 intmax_t strtoimax (__const char *__restrict __nptr, extern uintmax_t strtoumax (__const char *__restrict __nptr, char ** __restrict __endptr, int __base) __THROW; -#if __UCLIBC_HAS_WCHAR__ +#if defined __UCLIBC_HAS_WCHAR__ && __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) diff --git a/include/obstack.h b/include/obstack.h index 2a708c53a..071acaff0 100644 --- a/include/obstack.h +++ b/include/obstack.h @@ -353,7 +353,7 @@ extern int obstack_exit_failure; /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and does not implement __extension__. But that compiler doesn't define __GNUC_MINOR__. */ -# if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) +# if __GNUC__ < 2 || (defined __NeXT__ && __NeXT__ && !__GNUC_MINOR__) # define __extension__ # endif -- cgit v1.2.3