projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3d105e
)
Work around a bug in Interix header files.
author
Lasse Collin
<lasse.collin@tukaani.org>
Sun, 27 Sep 2009 08:48:54 +0000
(11:48 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Sun, 27 Sep 2009 08:48:54 +0000
(11:48 +0300)
Thanks to Markus Duft for the patch.
src/common/sysdefs.h
patch
|
blob
|
history
diff --git
a/src/common/sysdefs.h
b/src/common/sysdefs.h
index
aa8ddcc
..
f89239a
100644
(file)
--- a/
src/common/sysdefs.h
+++ b/
src/common/sysdefs.h
@@
-89,6
+89,12
@@
# define UINT64_MAX UINT64_C(18446744073709551615)
#endif
+// Interix has broken header files, which typedef size_t to unsigned long,
+// but a few lines later define SIZE_MAX to INT32_MAX.
+#ifdef __INTERIX
+# undef SIZE_MAX
+#endif
+
// The code currently assumes that size_t is either 32-bit or 64-bit.
#ifndef SIZE_MAX
# if SIZEOF_SIZE_T == 4