On Fri, Nov 9, 2012 at 12:18 PM, Karel Gardas <karel.gar...@centrum.cz> wrote:
> On 11/ 9/12 06:53 PM, Gabriel Dos Reis wrote:
>>
>> Include<inttypes.h>  before all other standard headers.
>>
>
> I I understand your "standard headers" well, then this is already done in
> mkDerivedConstants.c, see:
>
> [...]
> #define PROFILING
> #define THREADED_RTS
>
> #include "PosixSource.h"
> #include "Rts.h"
> #include "Stable.h"
> #include "Capability.h"
>
> #include <inttypes.h>
> #include <stdio.h>
> #include <string.h>
> [...]
>
> The problem which I describe is in the position of PosixSource.h which
> defines problematic _XOPEN_SOURCE and <inttypes.h> includes...
>
> Karel

The point I was making (admittedly imperfectly) is
that <inttypes.h> should be included before "PosixSource.h".
Does that work for you?  Is it acceptable to Simon M.?

To be clear, I find it unfortunate that Solaris ties its conformance
to C99 to a completely
separate standard.  It is a platform that has proven frustrating to
even GCC/libstdc++
implementers, so I feel your plain.

-- Gaby

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to