cloudbase / PyMI

A blazing fast replacement for the Python WMI module
Apache License 2.0
21 stars 14 forks source link

Fix building with mingw-w64. #47

Closed jeremyd2019 closed 1 year ago

jeremyd2019 commented 1 year ago

Several cases where code was trying to take a reference to an rvalue.

Include <locale> for std::wstring_convert.

Issue where mingw-w64 defaulted to 0x0502 (server 2003) instead of latest available version in SDKDDKVer.h, as mentioned in comments of targetver.h. https://sourceforge.net/p/mingw-w64/mailman/message/37799758/

Only override new_compiler if python was built with MSC (as opposed to GCC).

See also msys2/MINGW-packages#16630

alexpilotti commented 1 year ago

Thanks @jeremyd2019!