#43 Fix NOGDI

closed-fixed
nobody
Header (27)
5
2011-09-03
2011-09-02
No

Trying to compile this snippet

#define _WIN32_WINNT 0x0600
#define NOGDI

#include <windows.h>

will cause a compilation failure because some declarations depending on wingdi.h data structures are being defined. In particular CreateDesktopExA depends on DEVMODE.

The attached patch fixes that.

I found this issue while trying to build Mesa3D with mingw-w64.

Discussion

  • Jose Fonseca

    Jose Fonseca - 2011-09-02

    Patch

     
  • Ozkan Sezer

    Ozkan Sezer - 2011-09-03

    I applied your patch to the trunk at rev. 4443 and to the v2.0 branch at rev. 4444. Thanks.

     
  • Ozkan Sezer

    Ozkan Sezer - 2011-09-03
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks