-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
I try to use swift-foundtion in my package on Windows, and it give me these errors:
C:\script\.build\checkouts\swift-foundation-icu\icuSources\common\putil.cpp:650:12: error: use of undeclared identifier 'timezone'; did you mean '__timezone'?
return U_TIMEZONE;
^~~~~~~~~~
__timezone
<command line>:8:20: note: expanded from macro 'U_TIMEZONE'
#define U_TIMEZONE timezone
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\time.h:78:24: note: '__timezone' declared here
_ACRTIMP long* __cdecl __timezone(void);
^
C:\script\.build\checkouts\swift-foundation-icu\icuSources\common\putil.cpp:650:12: error: cannot initialize return object of type 'int32_t' (aka 'int') with an lvalue of type 'long *() __attribute__((cdecl))'
return U_TIMEZONE;
^~~~~~~~~~
<command line>:8:20: note: expanded from macro 'U_TIMEZONE'
#define U_TIMEZONE timezone
^~~~~~~~
C:\script\.build\checkouts\swift-foundation-icu\icuSources\common\putil.cpp:1557:15: error: use of undeclared identifier 'tzdirbuf'
dir = tzdirbuf;
^
3 errors generated.
[413/478] Compiling ICUCommon putil.cpp
My envrioments:
OS: Windows 10 19045.3208
Windows sdk: Windows 10.0.19041.0/10.0.20348.0
Complier: MSVC v143 vs2022
VSCode version: 1.80.1
CodeLLDB version: v1.9.2
Compiler: swift-clang
Debuggee: x86_64-windows-msvc
compnerd.org Swift version: 5.8.1 (swift-5.8.1-RELEASE)
Metadata
Metadata
Assignees
Labels
No labels