]> granicus.if.org Git - python/commitdiff
Hopefully added _fileio module to the Windows build system
authorChristian Heimes <christian@cheimes.de>
Thu, 27 Mar 2008 01:36:21 +0000 (01:36 +0000)
committerChristian Heimes <christian@cheimes.de>
Thu, 27 Mar 2008 01:36:21 +0000 (01:36 +0000)
PC/config.c
PC/pyconfig.h
PCbuild/pythoncore.vcproj

index f2d38ae461794ea38708ffb34b244a3d400f26b2..816edcacd2afe907b38afd00ecb00c77aeaa160a 100644 (file)
@@ -52,6 +52,7 @@ extern void initparser(void);
 extern void init_winreg(void);
 extern void init_struct(void);
 extern void initdatetime(void);
+extern void init_fileio(void);
 extern void init_functools(void);
 extern void initzlib(void);
 
@@ -129,6 +130,7 @@ struct _inittab _PyImport_Inittab[] = {
        {"_winreg", init_winreg},
        {"_struct", init_struct},
        {"datetime", initdatetime},
+       {"_fileio", init_fileio},
        {"_functools", init_functools},
 
        {"xxsubtype", initxxsubtype},
index 1892cf1ea5868e9ea046ef4a5854c49376512830..7cba34021bbbcc607d4fc085c96405b5b86ddbbb 100644 (file)
@@ -207,12 +207,13 @@ typedef _W64 int ssize_t;
 #endif /* MS_WIN32 && !MS_WIN64 */
 
 typedef int pid_t;
-#define hypot _hypot
 
 #include <float.h>
 #define Py_IS_NAN _isnan
 #define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
 #define Py_IS_FINITE(X) _finite(X)
+#define copysign _copysign
+#define hypot _hypot
 
 #endif /* _MSC_VER */
 
@@ -392,7 +393,7 @@ Py_NO_ENABLE_SHARED to find out.  Also support MS_NO_COREDLL for b/w compat */
 /* Fairly standard from here! */
 
 /* Define to 1 if you have the `copysign' function. */
-/* #define HAVE_COPYSIGN 1*/
+#define HAVE_COPYSIGN 1
 
 /* Define to 1 if you have the `isinf' function. */
 #define HAVE_ISINF 1
index b02703ae46448c6f6d3ccdcb6e419683188c7802..3d3601ad9358f45aa7ab01c89e6ba5787a7b481a 100644 (file)
                                RelativePath="..\Modules\_csv.c"
                                >
                        </File>
+                       <File
+                               RelativePath="..\Modules\_fileio.c"
+                               >
+                       </File>
                        <File
                                RelativePath="..\Modules\_functoolsmodule.c"
                                >