[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string.h uses restrict
From: |
Eric Blake |
Subject: |
Re: string.h uses restrict |
Date: |
Wed, 18 Mar 2009 20:31:08 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[adding bug-zile]
According to Reuben Thomas on 3/18/2009 8:16 PM:
> On Wed, 18 Mar 2009, Eric Blake wrote:
>
>> Did you actually encounter a compilation failure where restrict was
>> improperly defined while using gnulib? If so, how do we reproduce it?
>
> It was not on my system, but on a BSD box that Nelson Beebe was kindly
> building GNU Zile on for me. A bit of the build log goes:
>
Ahh. The bug is in zile, not gnulib.
http://git.savannah.gnu.org/cgit/zile.git/tree/src/lists.c
shows that you forgot to #include <config.h> prior to using system
headers. That is a no-no when using gnulib. EVERY .c file in your
project MUST include <config.h> prior to anything else (or include a
project-specific .h which in turn includes <config.h> first).
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknBrmwACgkQ84KuGfSFAYCMFwCdE9Z4YKDivP67Ef+vUZsdS9Vf
QJAAnjijlXDZKtvOCt0EdaoFfvGlSIyA
=WWSS
-----END PGP SIGNATURE-----
- string.h uses restrict, Reuben Thomas, 2009/03/18
- Re: string.h uses restrict, Eric Blake, 2009/03/18
- Re: string.h uses restrict, Reuben Thomas, 2009/03/18
- Re: string.h uses restrict,
Eric Blake <=
- Re: string.h uses restrict, Reuben Thomas, 2009/03/18
- Re: string.h uses restrict, Jim Meyering, 2009/03/19
- Re: string.h uses restrict, Reuben Thomas, 2009/03/20
- Re: string.h uses restrict, Eric Blake, 2009/03/20
- Re: string.h uses restrict, Reuben Thomas, 2009/03/20
- Re: gnulib is source or binary?, Bruno Haible, 2009/03/20
- Re: gnulib is source or binary?, Reuben Thomas, 2009/03/20
- Re: string.h uses restrict, Simon Josefsson, 2009/03/20
- Re: string.h uses restrict, Reuben Thomas, 2009/03/31
- Re: string.h uses restrict, Jim Meyering, 2009/03/20