From dc0b3ae44686f4d69c1043983ae8c1da720f8186 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 23 Jun 2017 02:08:09 -0400 Subject: [PATCH] Enable Windows builds on Python 3.6; try to fix again. --- appveyor.yml | 8 ++++++++ mwparserfromhell/parser/ctokenizer/avl_tree.h | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index d60b14b..afe1450 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -52,6 +52,14 @@ environment: PYTHON_VERSION: "3.5" PYTHON_ARCH: "64" + - PYTHON: "C:\\Python36" + PYTHON_VERSION: "3.6" + PYTHON_ARCH: "32" + + - PYTHON: "C:\\Python36-x64" + PYTHON_VERSION: "3.6" + PYTHON_ARCH: "64" + install: - "%PIP% install --disable-pip-version-check --user --upgrade pip" - "%PIP% install wheel twine" diff --git a/mwparserfromhell/parser/ctokenizer/avl_tree.h b/mwparserfromhell/parser/ctokenizer/avl_tree.h index f4869a6..8508411 100644 --- a/mwparserfromhell/parser/ctokenizer/avl_tree.h +++ b/mwparserfromhell/parser/ctokenizer/avl_tree.h @@ -22,10 +22,17 @@ #define _AVL_TREE_H_ #include + +#if defined(_MSC_VER) && (_MSC_VER < 1600) +typedef unsigned long uintptr_t; +#else #include +#endif #ifdef __GNUC__ # define AVL_INLINE inline __attribute__((always_inline)) +#elif defined(_MSC_VER) && (_MSC_VER < 1900) +# define AVL_INLINE __inline #else # define AVL_INLINE inline #endif