diff options
Diffstat (limited to 'AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/zlib/gzguts.h')
-rw-r--r-- | AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/zlib/gzguts.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/zlib/gzguts.h b/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/zlib/gzguts.h index bef9749ee8..d527486b10 100644 --- a/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/zlib/gzguts.h +++ b/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/zlib/gzguts.h @@ -1,4 +1,5 @@ /* gzguts.h -- zlib internal header definitions for gz* operations
+ * Copyright (c) 2015, Daryl McDaniel. All rights reserved.<BR>
* Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -31,7 +32,7 @@ # include <stddef.h>
#endif
-#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
+#if (defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)) && !defined(UEFI_C_SOURCE)
# include <io.h>
#endif
@@ -42,6 +43,11 @@ # define close _close
#endif
+// Needed to get the declarations for open, read, write, close
+#ifdef UEFI_C_SOURCE
+# include <unistd.h>
+#endif
+
#ifdef NO_DEFLATE /* for compatibility with old definition */
# define NO_GZCOMPRESS
#endif
@@ -99,7 +105,7 @@ Microsoft more than a decade later!), _snprintf does not guarantee null
termination of the result -- however this is only used in gzlib.c where
the result is assured to fit in the space provided */
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && !defined(UEFI_C_SOURCE)
# define snprintf _snprintf
#endif
|