Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67622c6

Browse files
committed
Drop compat code for outdated MSVC.
Per https://wiki.python.org/moin/WindowsCompilers#Which_Microsoft_Visual_C.2B-.2B-_compiler_to_use_with_a_specific_Python_version_.3F https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B Py>=3.5+ requires VC++>=14, which corresponds to _MSV_VER>=1900, so drop the now irrelevant #ifdef blocks.
1 parent 3c702c4 commit 67622c6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/mplutils.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
#ifndef MPLUTILS_H
66
#define MPLUTILS_H
77

8-
#if defined(_MSC_VER) && _MSC_VER <= 1600
9-
typedef unsigned __int8 uint8_t;
10-
#else
118
#include <stdint.h>
12-
#endif
139

1410
#ifdef _POSIX_C_SOURCE
1511
# undef _POSIX_C_SOURCE
@@ -56,10 +52,4 @@ const size_t NUM_VERTICES[] = { 1, 1, 1, 2, 3, 1 };
5652

5753
extern "C" int add_dict_int(PyObject *dict, const char *key, long val);
5854

59-
#if defined(_MSC_VER) && (_MSC_VER < 1800)
60-
namespace std {
61-
inline bool isfinite(double num) { return _finite(num) != 0; }
62-
}
63-
#endif
64-
6555
#endif

0 commit comments

Comments
 (0)