On Wed, 2007-02-07 at 06:58 +0000, Daniel Silverstone wrote:
Perhaps we could have a 'flags' header which all code is
required to
include, and in that we could put OS based defines to generate the right
defines for include.
We could also preinclude things with -include on the gcc commandline
so
we could simply change the compile command to
gcc -include os-indep.h $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
We have something similar with config.h, which I was thinking about last
night might be the ideal place to hide this ickyness. I'd like to
maintain the current simplicity of building nsgtk for as long as
possible though - it's quite refreshing.
B.