[scanner] Objective-c support
Submitted by John Ralls
Link to original bug (#626995)
Description
This is manifested in two ways: When "-xobjective-c" is included in CFLAGS (as it is for Gtk+ when building the quartz backend), the scanner emits the error message "Usage: g-ir-scanner [options] sources
g-ir-scanner: error: no such option: -x"
Without that CFLAG set, g-ir-scanner emits errors of the form /usr/local/gtk-unstable/src/gtk+-2.0/gtk/gtksearchenginequartz.h:103: unexpected character `@'
(@ is used in objective-c to introduce string constants.)
The workaround for Gtk+-quartz is to disable introspection.