summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-10-22 10:33:23 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-10-22 10:33:23 (GMT)
commitf427a141563ab2fbb231cc425141cea97e7bd220 (patch)
tree7049791588db52c48b83584fe85225c26326c626 /Modules/timemodule.c
parent7cf710af3b4270de16ade25b69868ac1a2fef8fa (diff)
downloadcpython-f427a141563ab2fbb231cc425141cea97e7bd220.zip
cpython-f427a141563ab2fbb231cc425141cea97e7bd220.tar.gz
cpython-f427a141563ab2fbb231cc425141cea97e7bd220.tar.bz2
Issue #22592: Drop support of the Borland C compiler to build Python
The distutils module still supports it to build extensions.
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 16f4f6d..1f07bcc 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -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