[Top][All Lists]

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

__GNUC_PREREQ (was: regex: 7 patches syncing from glibc to gnulib)

From: Eric Blake
Subject: __GNUC_PREREQ (was: regex: 7 patches syncing from glibc to gnulib)
Date: Thu, 28 Jan 2010 06:35:27 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20090812 Thunderbird/ Mnenhy/

According to Eric Blake on 1/28/2010 6:30 AM:
> because there is no other definition of __GNUC_PREREQ():
> In file included from ../../lib/regex.c:59:
> ../../lib/regex_internal.h:854:19: error: missing binary operator before
> token "("
> It looks like several other files have a sane definition, such as fts_.h.

For that matter, would it make sense to have a gnulib module that
guarantees that __GNUC_PREREQ is defined in <config.h>, and then convert
various other modules to use it rather than open-coding their __GNUC__
version checks?  On the other hand, modules like string (lib/string.in.h)
still have to open-code their checks, since the point of replacement
headers is that they can be installed without <config.h>.

Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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