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

qt_windows.h - windows.h include missing extern "C"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 4.7.1
    • 4.7.0
    • None
    • None

    Description

      In src/corelib/global/qt_windows.h the windows.h include is missing an extern "C" linkage declaration:

      #include <windows.h>
      

      This causes a compile error on MinGW-w64 GCC 4.5.1 (http://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg00952.html).

      It should be:

      #ifdef __cplusplus
      extern "C" {
      #endif
      #include <windows.h>
      #ifdef __cplusplus
      }
      #endif
      

      Attachments

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

        Activity

          People

            earthdomain Earth Domain (Inactive)
            net147 Jonathan Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes