On Mon, Dec 08, 2003 at 03:32:12PM +0000, Keith Whitwell wrote:
Alan,
Does this actually address the issue - ie. how does this fit in with ptrdiff_t?
For me, it's not ptrdiff_t that's the problem. It's size_t. What's the compile error your getting ?
This is what I'm getting when compiling dispatch.c
In file included from /X11R6/SourceForge/Mesanew/Mesa-newtree/include/GL/gl.h:41, from glheader.h:200, from dispatch.c:38: /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h:213: conflicting types for `xf86size_t' ./../../../../programs/Xserver/include/xf86_libc.h:83: previous declaration of `xf86size_t'
Ah, OK. Once I resolved this problem (by not including <stddef.h> from gl.h or glext.h), I ran into a further problem that ptrdiff_t isn't defined.
So I guess you avoid the first problem in a way that still allows you to include <stddef.h>, but avoid the duplicated definition of size_t. That makes sense.
Keith
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
