OK, my sys/types.h does have a #include <endian.h> but there is no endian.h in the compiler include paths. If types.h is used surely it would complain that endian.h cannot be found? Since it doesn't, surely types.h is not being used?
On Mon, 6 May 2002 16:41:03 +0100 (BST) Andre armccurdy@yahoo.co.uk wrote:
Gareth Bransby G.C.Bransby-99@student.lboro.ac.uk wrote:
...
This doesn't mention BIG_ENDIAN LITTLE_ENDIAN or anything either. Is there anwhere else it could be getting the information from?
The configure script runs a test program which includes sys/types.h and sys/param.h.
Under cygwin, the endian macros seem to be in sys/param.h Under linux, they are in endian.h which is included from sys/types.h
There is probably an official 'correct' place to put them, but if you just want to get your code to compile, either will do.... ;-)
Andre
Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com