[PATCH 5/5] include: Fix conflicting definitions of NULL, wchar_t, wint_t, wctype_t.

Jacek Caban jacek at codeweavers.com
Wed Jul 22 08:48:45 CDT 2020


On 22.07.2020 15:35, Puetz Kevin A wrote:
> But I don't think this actually makes a lot of sense either. Windows SDK 10.0.17763.0
> drags in windef.h -> minwindef.h -> winnt.h -> ctype.h -> corecrt.h,
> and also  winnt.h -> guiddef.h -> string.h. By the end you're only avoiding
> __threadid(), __threadhandle(), offsetof(), and (for c++) std::nullptr_t,
> the rest of corecrt.h gets pulled in eventually anyway.


Oh, good catch, I didn't notice that. Then maybe we could could move 
existing NULL define after #include <winnt.h> and guard with #ifndef 
NULL (instead of #undefing)?


Thanks,

Jacek




More information about the wine-devel mailing list