Message246359
This patch works for me on Linux but it seems clearly wrong for windows.
The problem is that using it on windows introduces a dependency and I don't have a windows machine to check if this is ok. To me it seems that the time module must have been built as part of the core somehow in the past.
diff -r 5adf995d443f Modules/timemodule.c
--- a/Modules/timemodule.c Mon Jul 06 14:03:01 2015 +0300
+++ b/Modules/timemodule.c Mon Jul 06 14:15:52 2015 +0100
@@ -30,6 +30,13 @@
#endif /* MS_WINDOWS */
#endif /* !__WATCOMC__ || __QNX__ */
+#define Py_BUILD_CORE
+#include "pyport.h"
+
+#define _Py_BEGIN_SUPPRESS_IPH
+#define _Py_END_SUPPRESS_IPH
+
+
/* Forward declarations */
static int pysleep(_PyTime_t);
static PyObject* floattime(_Py_clock_info_t *info); |
|
Date |
User |
Action |
Args |
2015-07-06 13:17:24 | tnmurphy | set | recipients:
+ tnmurphy |
2015-07-06 13:17:24 | tnmurphy | set | messageid: <1436188644.05.0.0207792921606.issue24575@psf.upfronthosting.co.za> |
2015-07-06 13:17:24 | tnmurphy | link | issue24575 messages |
2015-07-06 13:17:23 | tnmurphy | create | |
|