Hi all,
Sometime it would be good to branch code depending
on presence of header file (which would also imply the
presence of related lib file). One good example is
uhttpd, and one if its modules.

To make build as easy as possible, the source code
could automatically detect the presence of these
dependencies and build with the best available options.

Some possible ideas for implementations:

1.)
#includetry "gd.ch"
#if defined( _GD_CH_ )
   // GT dependent parts
#endif

2.)
#includeif "gd.ch"
   // GT dependent parts
#endif

3.)
#if include( "gd.ch" )
   // GT dependent parts
#endif

4.)
#if exist( "gd.ch" )
   #include "gd.ch" )
   // GT dependent parts
#endif

[ My vote to 2.) ]

Any opinions, or better ideas?

Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to