From fa7ffa8f0365554a32677de0bcfedd3bc87fceff Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Mon, 9 Sep 2024 14:15:29 +0000 Subject: [PATCH] Fix mingw compiler error due to missing function declaration This fixes the following compiler errors. time_zone_lookup.cc:78:34: error: 'WindowsCreateStringReference' was not declared in this scope time_zone_lookup.cc:84:34: error: 'WindowsDeleteString' was not declared in this scope time_zone_lookup.cc:90:34: error: 'WindowsGetStringRawBuffer' was not declared in this scope Also, official documentation suggests to include the winstring.h header. https://learn.microsoft.com/en-us/windows/win32/api/winstring/nf-winstring-windowsgetstringrawbuffer --- src/time_zone_lookup.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/time_zone_lookup.cc b/src/time_zone_lookup.cc index 75ab65d..ddc48e7 100644 --- a/src/time_zone_lookup.cc +++ b/src/time_zone_lookup.cc @@ -45,6 +45,7 @@ #include #include #include +#include #endif #endif