]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/zlib/gzguts.h
AppPkg/.../Python-2.7.10: AppPkg.dsc, pyconfig.h, PyMod-2.7.10
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / PyMod-2.7.10 / Modules / zlib / gzguts.h
index bef9749ee8d02e01e9e4c537aed250de9b5de0a6..d527486b10c942cb5e9a23dd4f16e04557ecf227 100644 (file)
@@ -1,4 +1,5 @@
 /* gzguts.h -- zlib internal header definitions for gz* operations\r
+ * Copyright (c) 2015, Daryl McDaniel. All rights reserved.<BR>\r
  * Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler\r
  * For conditions of distribution and use, see copyright notice in zlib.h\r
  */\r
@@ -31,7 +32,7 @@
 #  include <stddef.h>\r
 #endif\r
 \r
-#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)\r
+#if (defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)) && !defined(UEFI_C_SOURCE)\r
 #  include <io.h>\r
 #endif\r
 \r
 #  define close _close\r
 #endif\r
 \r
+// Needed to get the declarations for open, read, write, close\r
+#ifdef  UEFI_C_SOURCE\r
+# include <unistd.h>\r
+#endif\r
+\r
 #ifdef NO_DEFLATE       /* for compatibility with old definition */\r
 #  define NO_GZCOMPRESS\r
 #endif\r
    Microsoft more than a decade later!), _snprintf does not guarantee null\r
    termination of the result -- however this is only used in gzlib.c where\r
    the result is assured to fit in the space provided */\r
-#ifdef _MSC_VER\r
+#if defined(_MSC_VER) && !defined(UEFI_C_SOURCE)\r
 #  define snprintf _snprintf\r
 #endif\r
 \r