Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23ef82f

Browse files
committed
Trent Mick:
The following modules are specifically excluded in the Win64 build: audioop, binascii, imageop, rgbimg. They are advertised as heavily 32-bit dependent. [They should probably be fixed! --GvR]
1 parent c66ae96 commit 23ef82f

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

PC/config.c

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,24 @@ PERFORMANCE OF THIS SOFTWARE.
3737
#include "Python.h"
3838

3939
extern void initarray();
40+
#ifndef MS_WIN64
4041
extern void initaudioop();
4142
extern void initbinascii();
43+
#endif
4244
extern void initcmath();
4345
extern void initerrno();
46+
#ifndef MS_WIN64
4447
extern void initimageop();
48+
#endif
4549
extern void initmath();
4650
extern void initmd5();
4751
extern void initnew();
4852
extern void initnt();
4953
extern void initoperator();
5054
extern void initregex();
55+
#ifndef MS_WIN64
5156
extern void initrgbimg();
57+
#endif
5258
extern void initrotor();
5359
extern void initsignal();
5460
extern void initsha();
@@ -74,19 +80,27 @@ struct _inittab _PyImport_Inittab[] = {
7480

7581
{"array", initarray},
7682
#ifdef MS_WINDOWS
83+
#ifndef MS_WIN64
7784
{"audioop", initaudioop},
7885
#endif
86+
#endif
87+
#ifndef MS_WIN64
7988
{"binascii", initbinascii},
89+
#endif
8090
{"cmath", initcmath},
8191
{"errno", initerrno},
92+
#ifndef MS_WIN64
8293
{"imageop", initimageop},
94+
#endif
8395
{"math", initmath},
8496
{"md5", initmd5},
8597
{"new", initnew},
8698
{"nt", initnt}, /* Use the NT os functions, not posix */
8799
{"operator", initoperator},
88100
{"regex", initregex},
101+
#ifndef MS_WIN64
89102
{"rgbimg", initrgbimg},
103+
#endif
90104
{"rotor", initrotor},
91105
{"signal", initsignal},
92106
{"sha", initsha},
@@ -100,11 +114,11 @@ struct _inittab _PyImport_Inittab[] = {
100114
{"cPickle", initcPickle},
101115
{"pcre", initpcre},
102116
#ifdef WIN32
103-
{"msvcrt", initmsvcrt},
104-
{"_locale", init_locale},
117+
{"msvcrt", initmsvcrt},
118+
{"_locale", init_locale},
105119
#endif
106120

107-
{"_codecs", init_codecs},
121+
{"_codecs", init_codecs},
108122

109123
/* -- ADDMODULE MARKER 2 -- */
110124

0 commit comments

Comments
 (0)