summaryrefslogtreecommitdiffstats
path: root/PC/config.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-11-13 17:29:30 (GMT)
committerGuido van Rossum <guido@python.org>2000-11-13 17:29:30 (GMT)
commit6042741948f4abfe3bafb5de129857acfc652d17 (patch)
tree814f155a65de575b65b92f77dbe1108385f12988 /PC/config.h
parent215c340aa30b72a3dd4f078520b61a05a0e663f3 (diff)
downloadcpython-6042741948f4abfe3bafb5de129857acfc652d17.zip
cpython-6042741948f4abfe3bafb5de129857acfc652d17.tar.gz
cpython-6042741948f4abfe3bafb5de129857acfc652d17.tar.bz2
Rip out DOS and Win16 support.
Diffstat (limited to 'PC/config.h')
-rw-r--r--PC/config.h104
1 files changed, 1 insertions, 103 deletions
diff --git a/PC/config.h b/PC/config.h
index 4a57199..9b2f918 100644
--- a/PC/config.h
+++ b/PC/config.h
@@ -128,97 +128,6 @@ typedef int pid_t;
#define LONG_LONG __int64
#endif /* _MSC_VER && > 850 */
-#if defined(_MSC_VER) && _MSC_VER <= 850 /* presume this implies Win16 */
-/* Start of defines for 16-bit Windows using VC++ 1.5 */
-#define COMPILER "[MSC 16-bit]"
-#define PYTHONPATH ".;.\\lib;.\\lib\\plat-win;.\\lib\\dos-8x3"
-#define IMPORT_8x3_NAMES
-typedef int pid_t;
-#define WORD_BIT 16
-#define SIZEOF_INT 2
-#define SIZEOF_LONG 4
-#define SIZEOF_VOID_P 4
-#pragma warning(disable:4113)
-#define memcpy memmove /* memcpy dangerous pointer wrap in Win 3.1 */
-#define hypot _hypot
-#define SIGINT 2
-#include <stdio.h>
-/* Windows 3.1 will not tolerate any console io in a dll */
-#ifdef _USRDLL
-#include <time.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-#define stdin ((FILE *)0)
-#define stdout ((FILE *)1)
-#define stderr ((FILE *)2)
-#define fflush Py_fflush
-int Py_fflush(FILE *);
-#define fgets Py_fgets
-char *Py_fgets(char *, int, FILE *);
-#define fileno Py_fileno
-int Py_fileno(FILE *);
-#define fprintf Py_fprintf
-int Py_fprintf(FILE *, const char *, ...);
-#define printf Py_printf
-int Py_printf(const char *, ...);
-#define sscanf Py_sscanf
-int Py_sscanf(const char *, const char *, ...);
-clock_t clock();
-void _exit(int);
-void exit(int);
-int sscanf(const char *, const char *, ...);
-#ifdef __cplusplus
-}
-#endif
-#endif /* _USRDLL */
-#ifndef NETSCAPE_PI
-/* use sockets, but not in a Netscape dll */
-#define USE_SOCKET
-#endif
-#endif /* MS_WIN16 */
-
-/* The Watcom compiler defines __WATCOMC__ */
-#ifdef __WATCOMC__
-#define COMPILER "[Watcom]"
-#define PYTHONPATH ".;.\\lib;.\\lib\\plat-win;.\\lib\\dos-8x3"
-#define IMPORT_8x3_NAMES
-#include <ctype.h>
-#include <direct.h>
-typedef int mode_t;
-typedef int uid_t;
-typedef int gid_t;
-typedef int pid_t;
-#if defined(__NT__)
-#define NT /* NT is obsolete - please use MS_WIN32 instead */
-#define MS_WIN32
-#define MS_WINDOWS
-#define NT_THREADS
-#define USE_SOCKET
-#define WITH_THREAD
-#elif defined(__WINDOWS__)
-#define MS_WIN16
-#define MS_WINDOWS
-#endif
-#ifdef M_I386
-#define WORD_BIT 32
-#define SIZEOF_INT 4
-#define SIZEOF_LONG 4
-#define SIZEOF_VOID_P 4
-#else
-#define WORD_BIT 16
-#define SIZEOF_INT 2
-#define SIZEOF_LONG 4
-#define SIZEOF_VOID_P 4
-#endif
-#define VA_LIST_IS_ARRAY
-#define HAVE_CLOCK
-#define HAVE_STRFTIME
-#ifdef USE_DL_EXPORT
-#define DL_IMPORT(RTYPE) RTYPE __export
-#endif
-#endif /* __WATCOMC__ */
-
/* The Borland compiler defines __BORLANDC__ */
/* XXX These defines are likely incomplete, but should be easy to fix. */
#ifdef __BORLANDC__
@@ -268,14 +177,7 @@ typedef int pid_t;
#define LONG_LONG __int64
#else /* !_WIN32 */
-/* XXX These defines are likely incomplete, but should be easy to fix. */
-
-#define PYTHONPATH ".;.\\lib;.\\lib\\plat-win;.\\lib\\dos-8x3"
-#define IMPORT_8x3_NAMES
-#ifdef USE_DL_IMPORT
-#define DL_IMPORT(RTYPE) RTYPE __import
-#endif
-
+#error "Only Win32 and later are supported"
#endif /* !_WIN32 */
#endif /* BORLANDC */
@@ -415,10 +317,6 @@ typedef unsigned long uintptr_t;
# define SIZEOF_FPOS_T 8
# define SIZEOF_HKEY 4
# endif
-#elif defined(MS_WIN16)
-# define PLATFORM "win16"
-#else
-# define PLATFORM "dos"
#endif