From: Steven M. S. <sms@2BSD.COM> - 2002-07-12 21:51:06
|
On Wed, 3 Jul 2002, Daniel Kobras wrote: > I put the extra includes in on purpose; an explicit include in each file > that makes use of defines from endian.h, which to me seems more robust > than relying on a specific include in an unrelated file. The overhead > introduced should be negligible. Ok, I have revised my suggested <endian.h> patch. ./configure checks for <endian.h> and <machine/endian.h> and defines HAVE_ENDIAN_H or HAVE_MACHINE_ENDIAN_H appropriately. All references to <endian.h> now look something like this: #if HAVE_ENDIAN_H #include <endian.h> #elif HAVE_MACHINE_ENDIAN_H #include <machine/endian.h> #endif If this is acceptable I'd appreciate the change being made so 'cvs update' works without having to edit things ;) Thanks! Steven Schultz sm...@2b... |