[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Is __STDC_VERSION supposed to be defined in NetBSD?
On Jul 31, 12:27pm, Martin Husemann wrote:
} On Thu, Jul 31, 2008 at 02:09:48AM -0700, John Nemeth wrote:
} > The big issue is that in -current some headers will pull in
} > <stdbool.h> even without -std=c99 (this is a change in behaviour
} > from 4.0).
} This sounds indeed like a bug to me.
} On the other hand the configure script could easily test for <stdbool.h>
sendmail being an ancient application has not been autoconfiscated,
it uses explicit configs for various OSes where needed and otherwise
is just written to be extremely portable.
It attempts to determine if <stdbool.h> exists by using the
following code in a header:
** SM_CONF_STDBOOL_H is 1 if <stdbool.h> exists
# ifndef SM_CONF_STDBOOL_H
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
# define SM_CONF_STDBOOL_H 1
# else /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L */
# define SM_CONF_STDBOOL_H 0
# endif /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L */
# endif /* ! SM_CONF_STDBOOL_H */
I am currently running tests on various NetBSD releases where
I always #define SM_CONF_STDBOOL_H 1. So far it looks like this
will work on anything as old as NetBSD 2.0.
}-- End of excerpt from Martin Husemann
Main Index |
Thread Index |