bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lib/regex_internal.h uses #if _LIBC instead of #if defined (_LIBC)


From: Simon Josefsson
Subject: Re: lib/regex_internal.h uses #if _LIBC instead of #if defined (_LIBC)
Date: Tue, 29 Dec 2009 23:42:35 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

"Vladimir 'φ-coder/phcoder' Serbinenko" <address@hidden> writes:

> === modified file 'gnulib/regex_internal.h'
> --- gnulib/regex_internal.h    2009-12-27 15:37:18 +0000
> +++ gnulib/regex_internal.h    2009-12-29 22:32:31 +0000
> @@ -58,7 +58,7 @@
>  # define SIZE_MAX ((size_t) -1)
>  #endif
>  
> -#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H &&
> HAVE_ISWCTYPE && HAVE_WCSCOLL) || _LIBC
> +#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H &&
> HAVE_ISWCTYPE && HAVE_WCSCOLL) || defined (_LIBC)
>  # define RE_ENABLE_I18N
>  #endif

What is the real problem?  As far as I recall, undefined CPP symbols
evaluate to 0.  So it is not an error to use _LIBC without first
checking if it is defined.

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]