在 2022-12-17 20:01, Pali Rohár 写道:
It would be nice if somebody who understand these patterns write some comment what is the real purpose of the first __pctype_func() definition because for me it looks like a dead code. And this pattern is repeated multiple times in lot of other header files.
If we look at 'apisetcconv.h' we can find similiar patterns as well, such as: ``` #ifndef WINUSERAPI #ifndef _USER32_ #define WINUSERAPI DECLSPEC_IMPORT #else #define WINUSERAPI #endif #endif ```There is no static library for USER32.DLL, so all USER32 functions are always `DECLSPEC_IMPORT`. So, when is `WINUSERAPI` defined empty? I suspect it's only effective when building USER32.DLL itself by Microsoft.
-- Best regards, LIU Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
