fix for endian.h
This commit is contained in:
parent
40d9e15975
commit
d1604ea6b2
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-numpy_core_include_numpy_npy_endian_h,v 1.3 2014/07/13 18:07:35 espie Exp $
|
||||
--- numpy/core/include/numpy/npy_endian.h.orig Sun Jul 13 19:52:50 2014
|
||||
+++ numpy/core/include/numpy/npy_endian.h Sun Jul 13 19:54:29 2014
|
||||
@@ -10,9 +10,15 @@
|
||||
/* Use endian.h if available */
|
||||
#include <endian.h>
|
||||
|
||||
- #define NPY_BYTE_ORDER __BYTE_ORDER
|
||||
- #define NPY_LITTLE_ENDIAN __LITTLE_ENDIAN
|
||||
- #define NPY_BIG_ENDIAN __BIG_ENDIAN
|
||||
+# if defined(BYTE_ORDER)
|
||||
+# define NPY_BYTE_ORDER BYTE_ORDER
|
||||
+# define NPY_LITTLE_ENDIAN LITTLE_ENDIAN
|
||||
+# define NPY_BIG_ENDIAN BIG_ENDIAN
|
||||
+# else
|
||||
+# define NPY_BYTE_ORDER __BYTE_ORDER
|
||||
+# define NPY_LITTLE_ENDIAN __LITTLE_ENDIAN
|
||||
+# define NPY_BIG_ENDIAN __BIG_ENDIAN
|
||||
+# endif
|
||||
#else
|
||||
/* Set endianness info using target CPU */
|
||||
#include "npy_cpu.h"
|
Loading…
x
Reference in New Issue
Block a user