Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34282

QtCore include pulls qt_windows.h in

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • 5.2.0 RC1
    • 5.0.0
    • Core: Other
    • None
    • every flavor of Windows

      #include <QtCore>
      includes qwineventnotifier.h which includes qt_windows.h.

      This leads to an environment cluttered with Win API defines and typedefs for everybody who includes QtCore or qt_windows.h.

      Observable is this for everybody who tries to build qlalr on Windows which includes QtCore and uses the identifier ERROR in an enum.
      ERROR, however is defined as 0 in wingdi.h and the build fails.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes