Bug#453264: libc6-dev: fails to define ptrdiff_t in malloc.h

2007-11-29 Thread peter green
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

Bug#453264: libc6-dev: fails to define ptrdiff_t in malloc.h

2007-11-29 Thread Aurelien Jarno
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

Bug#453264: libc6-dev: fails to define ptrdiff_t in malloc.h

2007-11-28 Thread brian m. carlson
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

Bug#453264: libc6-dev: fails to define ptrdiff_t in malloc.h

2007-11-28 Thread Aurelien Jarno
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

Bug#453264: libc6-dev: fails to define ptrdiff_t in malloc.h

2007-11-27 Thread brian m. carlson
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’ /