13 lines
457 B
Text
13 lines
457 B
Text
--- caca/caca_stubs.h.orig Sun Jul 13 16:43:57 2014
|
|
+++ caca/caca_stubs.h Sun Jul 13 16:45:02 2014
|
|
@@ -42,6 +42,10 @@ static inline int geterrno(void) { return errno; }
|
|
/* Nothing to do */
|
|
# elif defined HAVE_ENDIAN_H
|
|
# include <endian.h>
|
|
+# if !defined(__BYTE_ORDER)
|
|
+# define __BYTE_ORDER BYTE_ORDER
|
|
+# define __BIG_ENDIAN BIG_ENDIAN
|
|
+# endif
|
|
# endif
|
|
static inline uint16_t hton16(uint16_t x)
|
|
{
|