blob: b3595fe64d3b0a35d58fe2fb5bb2b5e62b135b93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ac,v 1.1 1998/08/11 07:59:09 agc Exp $
Avoid conflicts with NetBSD ENDIAN macros
--- framewks/hash.in 1998/08/11 07:18:58 1.1
+++ framewks/hash.in 1998/08/11 07:19:54
@@ -25,11 +25,11 @@
#include "modsupport.h"
/* Endianness testing and definitions */
-#define TestEndianness(variable) {int i=1; variable=BIG_ENDIAN;\
- if (*((char*)&i)==1) variable=LITTLE_ENDIAN;}
+#define TestEndianness(variable) {int i=1; variable=Py_BIG_ENDIAN;\
+ if (*((char*)&i)==1) variable=Py_LITTLE_ENDIAN;}
-#define LITTLE_ENDIAN 1
-#define BIG_ENDIAN 0
+#define Py_LITTLE_ENDIAN 1
+#define Py_BIG_ENDIAN 0
/* This is where the actual code for the hash function will go */
|