GNOME Bugzilla – Bug 722954
gen-introspect's use of -U__GNUC__ causes problems
Last modified: 2014-02-09 21:24:25 UTC
Some system headers (notably <stdarg.h> on FreeBSD) get upset when they
see an unexpected compiler. We go out of our way to pass -U__GNUC__ to
cpp from the scanner code during gen-introspect and this is causing
As a workaround, we can pretend to be lint, which fixes the issue at
least for FreeBSD.
Created attachment 267174 [details] [review]
gen-introspect: pretend to be lint
http://fxr.watson.org/fxr/source/x86/include/stdarg.h is the file in question, fwiw.
Note near the bottom:
74 #error this file needs to be ported to your compiler
Review of attachment 267174 [details] [review]:
Thanks for the patch. I don't have a FreeBSD system around but this looks fine to me.
Attachment 267174 [details] pushed as aff8625 - gen-introspect: pretend to be lint