#2047 wtypes.h requires you to include windows.h

WSL
pending
Earnie Boyd
None
Bug
fixed
Feature_in_WSL_4.1
False
2013-09-18
2013-09-15
Janne Rönkkö
No

If wtypes.h is included without including windows.h first some types are undefined (a compilation error). I faced the issue while compiling Qt 4.8.5 with MinGW g++ 4.8.1

The issue can be fixed by including rpc.h and rpcndr.h before the include guard _WTYPES_H in wtypes.h

A similar fix has been made to (at least) objbase.h (see commit da60fde74476b9b27760f4b62898334cb54a92a1).

Related

Issues: #2025

Discussion

  • Earnie Boyd
    Earnie Boyd
    2013-09-15

    • status: unread --> pending
    • assigned_to: Earnie Boyd
    • Resolution: none --> later
    • Category: Unknown --> Feature_in_WSL_4.1
     
  • Earnie Boyd
    Earnie Boyd
    2013-09-18

    • Resolution: later --> fixed
     
  • Earnie Boyd
    Earnie Boyd
    2013-09-18

    This is actually already fixed in the 4.1-dev branch.