Skip to content

Commit

Permalink
Fix mingw compiler error due to missing function declaration (google#297
Browse files Browse the repository at this point in the history
)

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
  • Loading branch information
Biswa96 authored Sep 9, 2024
1 parent 6624659 commit 8bdbd84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/time_zone_lookup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <wchar.h>
#include <windows.globalization.h>
#include <windows.h>
#include <winstring.h>
#endif
#endif

Expand Down

0 comments on commit 8bdbd84

Please sign in to comment.