Re: #if usage, coding standard question



Hi,

On Wed, Aug 20, 2003 at 14:36:50 -0400, Dan Kalowsky wrote:
> In our path to get things working, we've been forced to run the Glib
> configure on Linux only the proceed afterwards in editing the resulting
> Makefiles.  This has shown one area where I'm slightly confused as to how

That's a shame, it'd be nice if ./configure worked for you.
You should work on that. :)

> 
> #ifdef HAVE_SYS_SELECT_H_
> #if HAVE_SYS_SELECT_H_

They both work. I don't think either is considered "preferred".

> 
> The latter will make it much easier to use the config.h file as an
> editable configuration file.  But what I haven't found is a mention as to

#ifdef is very common. It's not that hard to comment out the
lines or s/define/undef/.

Noah



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