mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #22592: Drop support of the Borland C compiler to build Python
The distutils module still supports it to build extensions.
This commit is contained in:
parent
7cf710af3b
commit
f427a14156
4 changed files with 9 additions and 51 deletions
|
|
@ -6,7 +6,7 @@
|
|||
functions are either unimplemented or implemented differently. The source
|
||||
assumes that for Windows NT, the macro 'MS_WINDOWS' is defined independent
|
||||
of the compiler used. Different compilers define their own feature
|
||||
test macro, e.g. '__BORLANDC__' or '_MSC_VER'. */
|
||||
test macro, e.g. '_MSC_VER'. */
|
||||
|
||||
|
||||
|
||||
|
|
@ -143,13 +143,6 @@ corresponding Unix manual entries for more information on calls.");
|
|||
#define HAVE_SYSTEM 1
|
||||
#include <process.h>
|
||||
#else
|
||||
#ifdef __BORLANDC__ /* Borland compiler */
|
||||
#define HAVE_EXECV 1
|
||||
#define HAVE_OPENDIR 1
|
||||
#define HAVE_PIPE 1
|
||||
#define HAVE_SYSTEM 1
|
||||
#define HAVE_WAIT 1
|
||||
#else
|
||||
#ifdef _MSC_VER /* Microsoft compiler */
|
||||
#define HAVE_GETPPID 1
|
||||
#define HAVE_GETLOGIN 1
|
||||
|
|
@ -179,7 +172,6 @@ corresponding Unix manual entries for more information on calls.");
|
|||
#define HAVE_WAIT 1
|
||||
#define HAVE_TTYNAME 1
|
||||
#endif /* _MSC_VER */
|
||||
#endif /* __BORLANDC__ */
|
||||
#endif /* ! __WATCOMC__ || __QNX__ */
|
||||
|
||||
|
||||
|
|
@ -214,11 +206,7 @@ extern int rmdir(char *);
|
|||
extern int chdir(const char *);
|
||||
extern int rmdir(const char *);
|
||||
#endif
|
||||
#ifdef __BORLANDC__
|
||||
extern int chmod(const char *, int);
|
||||
#else
|
||||
extern int chmod(const char *, mode_t);
|
||||
#endif
|
||||
/*#ifdef HAVE_FCHMOD
|
||||
extern int fchmod(int, mode_t);
|
||||
#endif*/
|
||||
|
|
|
|||
|
|
@ -27,13 +27,6 @@
|
|||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include "pythread.h"
|
||||
|
||||
#if defined(__BORLANDC__)
|
||||
/* These overrides not needed for Win32 */
|
||||
#define timezone _timezone
|
||||
#define tzname _tzname
|
||||
#define daylight _daylight
|
||||
#endif /* __BORLANDC__ */
|
||||
#endif /* MS_WINDOWS */
|
||||
#endif /* !__WATCOMC__ || __QNX__ */
|
||||
|
||||
|
|
@ -88,7 +81,7 @@ floatclock(_Py_clock_info_t *info)
|
|||
}
|
||||
#endif /* HAVE_CLOCK */
|
||||
|
||||
#if defined(MS_WINDOWS) && !defined(__BORLANDC__)
|
||||
#ifdef MS_WINDOWS
|
||||
#define WIN32_PERF_COUNTER
|
||||
/* Win32 has better clock replacement; we have our own version, due to Mark
|
||||
Hammond and Tim Peters */
|
||||
|
|
@ -120,7 +113,7 @@ win_perf_counter(_Py_clock_info_t *info)
|
|||
}
|
||||
return PyFloat_FromDouble(diff / (double)cpu_frequency);
|
||||
}
|
||||
#endif
|
||||
#endif /* MS_WINDOWS */
|
||||
|
||||
#if defined(WIN32_PERF_COUNTER) || defined(HAVE_CLOCK)
|
||||
#define PYCLOCK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue