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

QtCore include pulls qt_windows.h in

    XMLWordPrintable

Details

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

    Description

      #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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes