diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5203d26..35f4cc9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,9 +11,7 @@ jobs: strategy: matrix: - # We don't test on Windows currently due to issues - # build libmaxminddb there. - platform: [macos-latest, ubuntu-latest] + platform: [macos-latest, ubuntu-latest, windows-latest] python-version: [3.8, 3.9, "3.10", 3.11, 3.12] name: Python ${{ matrix.python-version }} on ${{ matrix.platform }} diff --git a/extension/maxminddb.c b/extension/maxminddb.c index 2d5be90..024c72e 100644 --- a/extension/maxminddb.c +++ b/extension/maxminddb.c @@ -1,11 +1,16 @@ #define PY_SSIZE_T_CLEAN #include +#ifdef MS_WINDOWS +#include +#include +#else #include -#include #include -#include #include #include +#endif +#include +#include #define __STDC_FORMAT_MACROS #include