> So I think using byteorder.h is not a good idea (note the warning).
 > How about just having two #defines, picking the Right one based on
 > WORDS_BIGENDIAN?

On Linux, the public <byteswap.h> header might have what you need.
For that matter <infiniband/arch.h> has htonll() defined.

 - R.

Reply via email to