Generally I agree with Steve and Danny. Compliance with a standard means you
should not violate it, but not that you could not do more than that.
And for a real example now. I used the netinet/tcp.h from BSD in a project.
That file contains generally only definitions so it is cross-platform
indeed. To achieve highest compatibility it USES the BYTE_ORDER macro. Since
MinGW does not define it, I myself had to add the following code to it:
#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321
#define BYTE_ORDER LITTLE_ENDIAN
I would be very glad to see it done in a standardized way.
By the way, could files like tcp.h, udp.h, etc. be added to MinGW? I think
they are useful and have no copyright problems.
After reading Adam's message I want to add some words. I do not care about
param.h, but I only wish BYTE_ORDER would be added to MinGW. I even thought
about adding it to stdlib.h so one does not need to include an extra header
--- Original Message from Adam Megacz <mingw@...> ---
AFAIK, param.h is actually a pre-POSIX UNIX. BYTE_ORDER is a BSD
thing, possibly POSIX as well (not sure though).