From 8bdbd840e97ff32e17f25db85c82589819ad3352 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 10 Sep 2024 00:44:18 +0530 Subject: [PATCH] Fix mingw compiler error due to missing function declaration (#297) 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