From f2e98b4f5555c29e55ee7ddebfdb5cdf621f68b2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 26 Jun 1996 19:53:41 +0000 Subject: new versions from Jim A --- PC/config.c | 14 ++++++++++++-- PC/config.h | 10 ---------- 2 files changed, 12 insertions(+), 12 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}, diff --git a/PC/config.h b/PC/config.h index 3c382de..3a91490 100644 --- a/PC/config.h +++ b/PC/config.h @@ -24,7 +24,6 @@ standard part of the Python distribution. #define HAVE_HYPOT #define DONT_HAVE_SIG_ALARM #define DONT_HAVE_SIG_PAUSE -#define LONG_BIT 32 /* Microsoft C defines _MSC_VER */ @@ -38,7 +37,6 @@ standard part of the Python distribution. #endif #define PYTHONPATH "c:\\python\\lib" typedef int pid_t; -#define WORD_BIT 32 #pragma warning(disable:4113) #define hypot _hypot #include @@ -48,7 +46,6 @@ typedef int pid_t; #define WITH_THREAD #ifndef NETSCAPE_PI #define USE_SOCKET -#define _COMPLEX_DEFINED #endif #ifdef USE_DL_IMPORT #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE @@ -65,8 +62,6 @@ typedef int pid_t; #define PYTHONPATH "c:\\python\\lib;c:\\python\\lib\\dos_8x3" #define IMPORT_8x3_NAMES typedef int pid_t; -#define WORD_BIT 16 -#define _COMPLEX_DEFINED #pragma warning(disable:4113) #define memcpy memmove /* memcpy dangerous pointer wrap in Win 3.1 */ #define hypot _hypot @@ -111,11 +106,6 @@ int sscanf(const char *, const char *, ...); typedef int mode_t; typedef int uid_t; typedef int gid_t; -#ifdef M_I386 -#define WORD_BIT 32 -#else -#define WORD_BIT 16 -#endif #define VA_LIST_IS_ARRAY #define HAVE_CLOCK #define HAVE_STRFTIME -- cgit v0.12