Bug 25111 - gtk-doc vs local definition of NULL
Summary: gtk-doc vs local definition of NULL
Status: NEW
Alias: None
Product: liboil
Classification: Unclassified
Component: unknown (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: David Schleef
QA Contact: David Schleef
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-15 21:52 UTC by Daniel Macks
Modified: 2009-11-15 22:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Daniel Macks 2009-11-15 21:52:15 UTC
I couldn't find a bug for tracking this known issue in liboil/liboiltypes.h:

>/**
> * NULL:
> *
> * FIXME: gtk-doc is broken and doesn't know how to ignore this.
> */
>#ifndef NULL
>#define NULL ((void *)0)
>#endif

but it's causing a mess with the gtk-doc I build for many other packages.

Is there any platform that doesn't have a NULL available somewhere in the system headers? Could:

Good way: have autoconf find that .h and #include it here (using autoconf template or something else like liboil-stdint.h does).

Hack way: #include lots of .h that are known to supply it on various platforms (possibly protected with AC_CHECK_HEADERS pragmas).
Comment 1 Daniel Macks 2009-11-15 22:03:26 UTC
Looks like stddef.h is the standard file to #include to get the NULL token.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.