Project

General

Profile

audacious-plugins_endian.diff

Brad Smith, February 06, 2013 20:27

View differences:

src/console/blargg_endian.h
28 28
	#elif __BYTE_ORDER == __BIG_ENDIAN
29 29
		#define BLARGG_BIG_ENDIAN 1
30 30
	#endif
31
#elif defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || \
32
      defined (__DragonFly__)
33
	#ifdef __OpenBSD__
34
		#include <machine/endian.h>
35
	#else
36
		#include <sys/endian.h>
37
	#endif
38
	#if _BYTE_ORDER == _LITTLE_ENDIAN
39
		#define BLARGG_LITTLE_ENDIAN 1
40
	#elif _BYTE_ORDER == _BIG_ENDIAN
41
		#define BLARGG_BIG_ENDIAN 1
42
	#endif
31 43
#else
32 44

  
33 45
#if defined (LSB_FIRST) || defined (__LITTLE_ENDIAN__) || BLARGG_CPU_X86 || \