I would expect that this header includes the usual endian conversion macros/functions like htons, htonl, betohs, etc, but it doesn't. Well, this is not a big problem as I can write my own functions for this. However, I noticed that in endian.h the BYTE_ORDER variable gets defined to BIG_ENDIAN which is a serious ploblem if someone tries to use a portable code.
Am I doing something, wrong or is it really a bug?
My GCC version (I am using CCS v6.1.1:
msp430-elf-gcc.exe (GCC) 4.9.1 20140707 (prerelease (msp430-14r1-364)) (GNUPro 1
4r1) (Based on: GCC 4.8 GDB 7.7 Binutils 2.24 Newlib 2.1)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thanks,
Gabor