diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-04-25 12:23:47 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-04-25 14:00:09 +0200 |
commit | 232af02fab9a3f00a2b003fa687c484690a38a0b (patch) | |
tree | 8c5a9c2efc7e6991013a4c3180993e8c50d18f82 /src/libs/utils/tcpportsgatherer.cpp | |
parent | feba990f6ebfb5f74f0dbcdc0806aa54dace00a5 (diff) | |
download | qt-creator-232af02fab9a3f00a2b003fa687c484690a38a0b.tar.gz |
tcpportsgatherer.cpp: Fix compilation with MinGW/gcc 4.7.1.
Change-Id: If8e49e5ce4a454c03f40f325e2d17d8dd2685430
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/libs/utils/tcpportsgatherer.cpp')
-rw-r--r-- | src/libs/utils/tcpportsgatherer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/utils/tcpportsgatherer.cpp b/src/libs/utils/tcpportsgatherer.cpp index 212d8866bd..c16d3f6781 100644 --- a/src/libs/utils/tcpportsgatherer.cpp +++ b/src/libs/utils/tcpportsgatherer.cpp @@ -48,7 +48,9 @@ #if defined(Q_OS_WIN) && defined(Q_CC_MINGW) // Missing declarations for MinGW. This requires MinGW with gcc 4.6. +#if __GNUC__ == 4 && __GNUC_MINOR__ < 7 typedef enum { } MIB_TCP_STATE; +#endif typedef struct _MIB_TCP6ROW { MIB_TCP_STATE State; |