Vanilla Development Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
config.h vs .c files
I still do not agree that code like this:
#include INC_UNISTD
#include INC_STRINGS
#include INC_SYS_SELECT
is very good, I much rather see stuff like this:
#if defined(HAVE_SYS_FILIO_H)
#include <sys/filio.h>
#endif
in the .c files, but I took Kurt's advise and move the Solaris
specific stuff into the relevant .c files.
configure will set or unset #defines in config.h, I key off those
#defines in the .c files. See ntserv/socket.c for an example.
--
Bob Tanner <tanner@real-time.com> | Phone : (612)943-8700
http://www.real-time.com | Fax : (612)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9