From a89f098a2244604af6c9058df5dad72adff3792a Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 10 Apr 2026 17:44:36 +0200 Subject: [PATCH] Fix mmdb library on Windows and use it by default --- Makefile.windows | 1 + include/mmdb.h | 7 +++++-- include/windows/setup.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile.windows b/Makefile.windows index 9251fc128..881e848ea 100644 --- a/Makefile.windows +++ b/Makefile.windows @@ -275,6 +275,7 @@ DLL_FILES=\ src/modules/geoip_base.dll \ src/modules/geoip_classic.dll \ src/modules/geoip_csv.dll \ + src/modules/geoip_mmdb.dll \ src/modules/geoip-tag.dll \ src/modules/globops.dll \ src/modules/help.dll \ diff --git a/include/mmdb.h b/include/mmdb.h index f9d0e3dfa..535a273ce 100644 --- a/include/mmdb.h +++ b/include/mmdb.h @@ -33,8 +33,11 @@ #include #ifdef _WIN32 -#include -#include + #ifndef _WIN32_WINNT + #define _WIN32_WINNT 0x0601 + #endif + #include + #include #else #include #include diff --git a/include/windows/setup.h b/include/windows/setup.h index cae62f8c1..7c105fffd 100644 --- a/include/windows/setup.h +++ b/include/windows/setup.h @@ -63,7 +63,7 @@ #define _WIN32_WINNT 0x0601 /* What geoip engine to use */ -#define GEOIP_ENGINE "geoip_classic" +#define GEOIP_ENGINE "geoip_mmdb" /* Generation version number (e.g.: 3 for Unreal3*) */ #define UNREAL_VERSION_GENERATION 6