[Python-checkins] cpython: Issue #23668: Regenerates posixmodule.c.h for new ifdefs

steve.dower python-checkins at python.org
Sun Apr 12 21:45:24 CEST 2015


https://hg.python.org/cpython/rev/cb7ca578a0c3
changeset:   95557:cb7ca578a0c3
user:        Steve Dower <steve.dower at microsoft.com>
date:        Sun Apr 12 15:44:54 2015 -0400
summary:
  Issue #23668: Regenerates posixmodule.c.h for new ifdefs

files:
  Modules/clinic/posixmodule.c.h |  12 ++++++------
  1 files changed, 6 insertions(+), 6 deletions(-)


diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h
--- a/Modules/clinic/posixmodule.c.h
+++ b/Modules/clinic/posixmodule.c.h
@@ -3989,7 +3989,7 @@
 
 #endif /* defined(HAVE_DEVICE_MACROS) */
 
-#if defined(HAVE_FTRUNCATE)
+#if (defined HAVE_FTRUNCATE || defined MS_WINDOWS)
 
 PyDoc_STRVAR(os_ftruncate__doc__,
 "ftruncate($module, fd, length, /)\n"
@@ -4020,9 +4020,9 @@
     return return_value;
 }
 
-#endif /* defined(HAVE_FTRUNCATE) */
-
-#if defined(HAVE_TRUNCATE)
+#endif /* (defined HAVE_FTRUNCATE || defined MS_WINDOWS) */
+
+#if (defined HAVE_TRUNCATE || defined MS_WINDOWS)
 
 PyDoc_STRVAR(os_truncate__doc__,
 "truncate($module, /, path, length)\n"
@@ -4060,7 +4060,7 @@
     return return_value;
 }
 
-#endif /* defined(HAVE_TRUNCATE) */
+#endif /* (defined HAVE_TRUNCATE || defined MS_WINDOWS) */
 
 #if (defined(HAVE_POSIX_FALLOCATE) && !defined(POSIX_FADVISE_AIX_BUG))
 
@@ -5847,4 +5847,4 @@
 #ifndef OS_SET_HANDLE_INHERITABLE_METHODDEF
     #define OS_SET_HANDLE_INHERITABLE_METHODDEF
 #endif /* !defined(OS_SET_HANDLE_INHERITABLE_METHODDEF) */
-/*[clinic end generated code: output=b15ceac3a8ff0eae input=a9049054013a1b77]*/
+/*[clinic end generated code: output=22f405f79f87ba20 input=a9049054013a1b77]*/

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list