Commit 4374001f authored by Stefan Behnel's avatar Stefan Behnel

work around missing stdint.h in some MSVC versions

parent 3d084b7d
...@@ -617,7 +617,17 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value, Py_ssize_t wid ...@@ -617,7 +617,17 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value, Py_ssize_t wid
//@requires: StringTools.c::BuildPyUnicode //@requires: StringTools.c::BuildPyUnicode
//@requires: CIntToDigits //@requires: CIntToDigits
#include <stdint.h> #ifdef _MSC_VER
#ifndef _MSC_STDINT_H_
#if _MSC_VER < 1300
typedef unsigned short uint16_t;
#else
typedef unsigned __int16 uint16_t;
#endif
#endif
#else
#include <stdint.h>
#endif
// NOTE: inlining because most arguments are constant, which collapses lots of code below // NOTE: inlining because most arguments are constant, which collapses lots of code below
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment