#41 Follow _GDI32_ on wingdi.h

closed-accepted
nobody
Header (27)
5
2011-04-28
2011-04-27
No

Mesa3D is an open source OpenGL implementation. When building for Windows it need to define a macro named _GDI32_ , to prevent GL entrypoints from being declared declspec(import) in wingdi.h.

However, unlike MSVC, MinGW-w64's wingdi.h header does not follow _GDI32_ define and invariably defines all GL entrypoints as declspec(import) causing inumoerous warnings when building Mesa3D.

The attached patch fixes that for MinGW-w64.

Discussion

  • Jose Fonseca

    Jose Fonseca - 2011-04-27

    wingdi.h patch

     
  • Ozkan Sezer

    Ozkan Sezer - 2011-04-27

    This patch seems correct to me. If it is accepted, please remember applying to the release branch, too.

     
  • Ozkan Sezer

    Ozkan Sezer - 2011-04-28

    Your patch is applied to the trunk at rev. 4154 and to the release branch at rev. 4155.

    Thanks. Closing this tracker item as 'accepted'.

     
  • Ozkan Sezer

    Ozkan Sezer - 2011-04-28
    • status: open --> closed-accepted
     

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks