use of config.h (fwd)

Or rather, present lack of use. I tried building glib head in an
environment that requires settings from config.h generated by configure,
and much to my horror, ended up adding lots of #include "config.h"
(naturally, properly #ifdef protected).

Which brings to my mind the question of what becomes of the (potential)
	* such environments are not supported
	* glib.h (and some other headers) should be changed to do include
	  config.h if glib is being built
	* I should send that patch in

The patch is quite large actually, and affects 63 files. Except for five
files (for which  it makes sure config.h is the first file included) it
merely adds:

#include "config.h"

I would of course prefere that all glib sources did the right thing and
included config.h - especially as a number of the source file already do


One day a tortoise will learn to fly
	-- Terry Pratchett, 'Small Gods'

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