]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Efi/edk2module.c
EADK (StdLib, AppPkg, StdLibPrivateInternalFiles): Python Beta Release.
[mirror_edk2.git] / AppPkg / Applications / Python / Efi / edk2module.c
index 451bf473beb4ca3e85e0bafff0e48784027ecbfd..edc9c867f11a541b478f81a5858b03ef65562e20 100644 (file)
@@ -2,7 +2,7 @@
     OS-specific module implementation for EDK II and UEFI.\r
     Derived from posixmodule.c in Python 2.7.2.\r
 \r
-    Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+    Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r
     This program and the accompanying materials are licensed and made available under\r
     the terms and conditions of the BSD License that accompanies this distribution.\r
     The full text of the license may be found at\r
@@ -155,7 +155,7 @@ corresponding Unix manual entries for more information on calls.");
 /* dummy version. _PyVerify_fd() is already defined in fileobject.h */\r
 #define _PyVerify_fd_dup2(A, B) (1)\r
 \r
-#ifndef UEFI_ENV\r
+#ifndef UEFI_C_SOURCE\r
 /* Return a dictionary corresponding to the POSIX environment table */\r
 extern char **environ;\r
 \r
@@ -196,7 +196,7 @@ convertenviron(void)
     }\r
     return d;\r
 }\r
-#endif  /* UEFI_ENV */\r
+#endif  /* UEFI_C_SOURCE */\r
 \r
 /* Set a POSIX-specific error from errno, and return NULL */\r
 \r
@@ -372,7 +372,7 @@ static PyStructSequence_Desc stat_result_desc = {
     10\r
 };\r
 \r
-#ifndef UEFI_ENV   /* Not in UEFI */\r
+#ifndef UEFI_C_SOURCE   /* Not in UEFI */\r
 PyDoc_STRVAR(statvfs_result__doc__,\r
 "statvfs_result: Result from statvfs or fstatvfs.\n\n\\r
 This object may be accessed either as a tuple of\n\\r
@@ -433,7 +433,7 @@ statresult_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
 \r
 \r
 /* If true, st_?time is float. */\r
-#if defined(UEFI_ENV)\r
+#if defined(UEFI_C_SOURCE)\r
   static int _stat_float_times = 0;\r
 #else\r
   static int _stat_float_times = 1;\r
@@ -7349,14 +7349,14 @@ INITFUNC(void)
     if (m == NULL)\r
         return;\r
 \r
-#ifndef UEFI_ENV\r
+#ifndef UEFI_C_SOURCE\r
     /* Initialize environ dictionary */\r
     v = convertenviron();\r
     Py_XINCREF(v);\r
     if (v == NULL || PyModule_AddObject(m, "environ", v) != 0)\r
         return;\r
     Py_DECREF(v);\r
-#endif  /* UEFI_ENV */\r
+#endif  /* UEFI_C_SOURCE */\r
 \r
     if (all_ins(m))\r
         return;\r