diff options
| author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2006-07-03 14:59:05 +0000 |
|---|---|---|
| committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2006-07-03 14:59:05 +0000 |
| commit | 74c3ea0a0f6599da7dd9a502b5a66aeb9512d8c3 (patch) | |
| tree | 910adede1919c53bd243bbdf5fb2a62c5478fa0a /Modules/timemodule.c | |
| parent | 2eda1b78f9b3d03260445dc1bdbae477cb3e5885 (diff) | |
| download | cpython-git-74c3ea0a0f6599da7dd9a502b5a66aeb9512d8c3.tar.gz | |
Fix build problems with the platform SDK on windows. It is not sufficient to test for the C compiler version when determining if we have the secure CRT from microsoft. Must test with an undocumented macro, __STDC_SECURE_LIB__ too.
Diffstat (limited to 'Modules/timemodule.c')
| -rw-r--r-- | Modules/timemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 2133273872..402e349b42 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -467,7 +467,7 @@ time_strftime(PyObject *self, PyObject *args) return ret; } free(outbuf); -#if defined _MSC_VER && _MSC_VER >= 1400 +#if defined _MSC_VER && _MSC_VER >= 1400 && defined(__STDC_SECURE_LIB__) /* VisualStudio .NET 2005 does this properly */ if (buflen == 0 && errno == EINVAL) { PyErr_SetString(PyExc_ValueError, "Invalid format string"); |
