Revision 7d13299d thunk.h

b/thunk.h
2 2
#define THUNK_H
3 3

  
4 4
#include <inttypes.h>
5
#include <endian.h>
5
#include "config.h"
6 6

  
7 7
#ifdef HAVE_BYTESWAP_H
8 8
#include <byteswap.h>
......
42 42

  
43 43
#endif
44 44

  
45
#undef WORDS_BIGENDIAN
46
#if __BYTE_ORDER == __BIG_ENDIAN
47
#define WORDS_BIGENDIAN
48
#endif
49

  
50 45
#ifdef WORDS_BIGENDIAN
51 46
#define BSWAP_NEEDED
52 47
#endif

Also available in: Unified diff