Skip to content

Commit 7817d4b

Browse files
committed
Hopefully added _fileio module to the Windows build system
1 parent 96d821c commit 7817d4b

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

PC/config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ extern void initparser(void);
5252
extern void init_winreg(void);
5353
extern void init_struct(void);
5454
extern void initdatetime(void);
55+
extern void init_fileio(void);
5556
extern void init_functools(void);
5657
extern void initzlib(void);
5758

@@ -129,6 +130,7 @@ struct _inittab _PyImport_Inittab[] = {
129130
{"_winreg", init_winreg},
130131
{"_struct", init_struct},
131132
{"datetime", initdatetime},
133+
{"_fileio", init_fileio},
132134
{"_functools", init_functools},
133135

134136
{"xxsubtype", initxxsubtype},

PC/pyconfig.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,13 @@ typedef _W64 int ssize_t;
207207
#endif /* MS_WIN32 && !MS_WIN64 */
208208

209209
typedef int pid_t;
210-
#define hypot _hypot
211210

212211
#include <float.h>
213212
#define Py_IS_NAN _isnan
214213
#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
215214
#define Py_IS_FINITE(X) _finite(X)
215+
#define copysign _copysign
216+
#define hypot _hypot
216217

217218
#endif /* _MSC_VER */
218219

@@ -392,7 +393,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
392393
/* Fairly standard from here! */
393394

394395
/* Define to 1 if you have the `copysign' function. */
395-
/* #define HAVE_COPYSIGN 1*/
396+
#define HAVE_COPYSIGN 1
396397

397398
/* Define to 1 if you have the `isinf' function. */
398399
#define HAVE_ISINF 1

PCbuild/pythoncore.vcproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,10 @@
986986
RelativePath="..\Modules\_csv.c"
987987
>
988988
</File>
989+
<File
990+
RelativePath="..\Modules\_fileio.c"
991+
>
992+
</File>
989993
<File
990994
RelativePath="..\Modules\_functoolsmodule.c"
991995
>

0 commit comments

Comments
 (0)