It's not that easy in the swi-prolog case. The two headers are included
in two separate headers, which are then included into the .c file. The
order cannot be switched around, because the former header includes
config.h, which is needed for the second header to work at all (IIRC).
Can't you j
peter green a écrit :
>> It's not that easy in the swi-prolog case. The two headers are included
>> in two separate headers, which are then included into the .c file. The
>> order cannot be switched around, because the former header includes
>> config.h, which is needed for the second header t
On Wed, Nov 28, 2007 at 11:28:15PM +0100, Aurelien Jarno wrote:
brian m. carlson a écrit :
---
#define _XOPEN_SOURCE
#include
#include
---
A quick workaround is to invert the two #include
It's not that easy in the swi-prolog case. The two headers are included
in two separate headers, whi
severity 453264 important
thanks
brian m. carlson a écrit :
> Package: libc6-dev
> Version: 2.7-2
> Severity: serious
> Justification: breaks other packages
>
> The following test program:
>
> ---
> #define _XOPEN_SOURCE
> #include
> #include
> ---
>
> results in a compile-time error:
>
> In
Package: libc6-dev
Version: 2.7-2
Severity: serious
Justification: breaks other packages
The following test program:
---
#define _XOPEN_SOURCE
#include
#include
---
results in a compile-time error:
In file included from foo.c:3:
/usr/include/malloc.h:85: error: expected ‘)’ before ‘__size’
/
5 matches
Mail list logo