[Python-checkins] r61033 - python/trunk/Python/import.c

christian.heimes python-checkins at python.org
Sun Feb 24 00:59:45 CET 2008


Author: christian.heimes
Date: Sun Feb 24 00:59:45 2008
New Revision: 61033

Modified:
   python/trunk/Python/import.c
Log:
MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short.

Modified: python/trunk/Python/import.c
==============================================================================
--- python/trunk/Python/import.c	(original)
+++ python/trunk/Python/import.c	Sun Feb 24 00:59:45 2008
@@ -22,6 +22,11 @@
 extern "C" { 
 #endif
 
+#ifdef MS_WINDOWS
+/* for stat.st_mode */
+typedef unsigned short mode_t;
+#endif
+
 extern time_t PyOS_GetLastModificationTime(char *, FILE *);
 						/* In getmtime.c */
 


More information about the Python-checkins mailing list