diff options
author | Guido van Rossum <guido@python.org> | 1996-06-26 19:53:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-06-26 19:53:41 (GMT) |
commit | f2e98b4f5555c29e55ee7ddebfdb5cdf621f68b2 (patch) | |
tree | 662bb335e27132b9ee8584de6a98e17cff893046 /PC/config.c | |
parent | 80b0fa0d991f753fd02e0a5dbfbe9b60e959642e (diff) | |
download | cpython-f2e98b4f5555c29e55ee7ddebfdb5cdf621f68b2.zip cpython-f2e98b4f5555c29e55ee7ddebfdb5cdf621f68b2.tar.gz cpython-f2e98b4f5555c29e55ee7ddebfdb5cdf621f68b2.tar.bz2 |
new versions from Jim A
Diffstat (limited to 'PC/config.c')
-rw-r--r-- | PC/config.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/PC/config.c b/PC/config.c index fed3745..ffe6c7a 100644 --- a/PC/config.c +++ b/PC/config.c @@ -29,6 +29,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "Python.h" +#ifndef MS_WIN16 +/* Assume all 32-bit platforms come standard with a WINSOCK library */ +#define USE_SOCKET +#define USE_SELECT +#endif + extern void initarray(); extern void initaudioop(); extern void initbinascii(); @@ -41,8 +47,9 @@ extern void initnt(); extern void initregex(); extern void initrgbimg(); extern void initrotor(); +extern void initselect(); extern void initsignal(); -extern void initsocket(); +extern void init_socket(); extern void initsoundex(); extern void initstrop(); extern void initstruct(); @@ -72,9 +79,12 @@ struct { {"regex", initregex}, {"rgbimg", initrgbimg}, {"rotor", initrotor}, +#ifdef USE_SELECT + {"select", initselect}, +#endif {"signal", initsignal}, #ifdef USE_SOCKET - {"socket", initsocket}, + {"_socket", init_socket}, #endif {"soundex", initsoundex}, {"strop", initstrop}, |