summaryrefslogtreecommitdiffhomepage
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/nt32/bits/alltypes.h.in3
-rw-r--r--arch/nt32/bits/limits.h9
-rw-r--r--arch/nt64/bits/alltypes.h.in3
-rw-r--r--arch/nt64/bits/limits.h9
4 files changed, 20 insertions, 4 deletions
diff --git a/arch/nt32/bits/alltypes.h.in b/arch/nt32/bits/alltypes.h.in
index d323a39..e9b3222 100644
--- a/arch/nt32/bits/alltypes.h.in
+++ b/arch/nt32/bits/alltypes.h.in
@@ -2,6 +2,9 @@
#define _Int64 long long
#define _Reg int
+#define __LONG_MAX 0x7fffffffL
+#define __LLONG_MAX 0x7fffffffffffffffLL
+
#ifndef __BYTE_ORDER__
#define __BYTE_ORDER__ 1234
#endif
diff --git a/arch/nt32/bits/limits.h b/arch/nt32/bits/limits.h
index 497ecc1..edbbe29 100644
--- a/arch/nt32/bits/limits.h
+++ b/arch/nt32/bits/limits.h
@@ -1,8 +1,13 @@
#define PAGE_SIZE 65536
#define LONG_BIT 32
-#define LONG_MAX 0x7fffffffL
-#define LLONG_MAX 0x7fffffffffffffffLL
+#ifndef LONG_MAX
+#define LONG_MAX __LONG_MAX
+#endif
+
+#ifndef LLONG_MAX
+#define LLONG_MAX __LLONG_MAX
+#endif
#define _MIDIPIX_ABI 20170101
#define _MIDIPIX_XFI 20170101
diff --git a/arch/nt64/bits/alltypes.h.in b/arch/nt64/bits/alltypes.h.in
index 8f14895..841b5ae 100644
--- a/arch/nt64/bits/alltypes.h.in
+++ b/arch/nt64/bits/alltypes.h.in
@@ -2,6 +2,9 @@
#define _Int64 long
#define _Reg long
+#define __LONG_MAX 0x7fffffffffffffffL
+#define __LLONG_MAX 0x7fffffffffffffffLL
+
#ifndef __BYTE_ORDER__
#define __BYTE_ORDER__ 1234
#endif
diff --git a/arch/nt64/bits/limits.h b/arch/nt64/bits/limits.h
index b17372b..43a769a 100644
--- a/arch/nt64/bits/limits.h
+++ b/arch/nt64/bits/limits.h
@@ -1,8 +1,13 @@
#define PAGE_SIZE 65536
#define LONG_BIT 64
-#define LONG_MAX 0x7fffffffffffffffL
-#define LLONG_MAX 0x7fffffffffffffffLL
+#ifndef LONG_MAX
+#define LONG_MAX __LONG_MAX
+#endif
+
+#ifndef LLONG_MAX
+#define LLONG_MAX __LLONG_MAX
+#endif
#define _MIDIPIX_ABI 20170101
#define _MIDIPIX_XFI 20170101