在 2024-05-30 21:14, Daniel Bonniot 写道:
This can be worked around by the user by adding a #include <windef.h>
before, but it can be confusing/surprising at first.
Since minwinbase.h depends on definitions from minwindef.h, wouldn't
it be cleaner if it included it?
My apologies if this is a bad idea for some reason, as I'm not
familiar with the code base.

My proposed patch is below for what it's worth.

Windows headers are in general not self-contained. If you do the same with Microsoft Visual Studio, you get similar errors.

I think you may include <minwindef.h> first. It should solve most of the errors, but I am uncertain whether it's sufficient.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to