[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On Wed, Nov 28, 2007 at 11:28:15PM +0100, Aurelien Jarno wrote:
brian m. carlson a écrit :
---
#define _XOPEN_SOURCE
#include <wchar.h>
#include <malloc.h>
---

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, 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).

--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
a typesetting engine: http://crustytoothpaste.ath.cx/~bmc/code/thwack
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature


Reply to: