[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Redefinition of _FILE_OFFSET_BITS triggers an unusual amount of warn
From: |
Jonathan Blanchard |
Subject: |
Re: Redefinition of _FILE_OFFSET_BITS triggers an unusual amount of warnings in Solaris. |
Date: |
Sun, 26 Apr 2009 11:34:36 -0300 |
On Fri, Apr 24, 2009 at 1:12 PM, Peter O'Gorman <address@hidden> wrote:
> Jonathan Blanchard wrote:
>> hi,
>>
>> Spurious redefinition of _FILE_OFFSET_BITS trigger many warnings when
>> using gcc in Solaris. Adding an undef before redefining would clear
>> the problem.
>>
>> It is initially defined in
>> gcc/lib/gcc/i386-pc-solaris2.11/4.3.2/include-fixed/sys included by
>> string.h.
>>
>
> Aren't these warnings because of including config.h after string.h?
> I think that they'll go away if you ensure that config.h is the first
> thing included in every source file.
It is but sometimes it's not really possible to include config.h
before all the headers.
>
> Peter
> --
> Peter O'Gorman
> http://pogma.com
>
Jonathan Blanchard