Skip to content

Commit

Permalink
Merge PR #2781: mumble_pch.hpp: Improve MinGW compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebeatrici committed Mar 6, 2017
2 parents 6e820e8 + cc00b21 commit 617975e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/mumble/mumble_pch.hpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define QT_USE_FAST_OPERATOR_PLUS #define QT_USE_FAST_OPERATOR_PLUS


#define NOMINMAX #define NOMINMAX
#define _WINSOCKAPI_ #define WIN32_LEAN_AND_MEAN


#define BOOST_TYPEOF_SUPPRESS_UNNAMED_NAMESPACE #define BOOST_TYPEOF_SUPPRESS_UNNAMED_NAMESPACE


Expand Down Expand Up @@ -74,18 +74,10 @@
#include <algorithm> #include <algorithm>


#ifdef Q_OS_WIN #ifdef Q_OS_WIN
// Qt 5's qnetworksession.h undefs 'interface' (as defined in ObjBase.h on Windows).
// This causes Windows headers that use COM interfaces to break. Internally, it's
// just defined as 'struct', so we'll do that here as well to make things work again
// without too much hassle.
#ifndef interface
#define interface struct
#endif

#include <windows.h>
#include <shellapi.h>
#include <winsock2.h> #include <winsock2.h>
#include <qos2.h> #include <qos2.h>
#include <windows.h>
#include <shellapi.h>
#include <wintrust.h> #include <wintrust.h>
#include <softpub.h> #include <softpub.h>
#include <dbt.h> #include <dbt.h>
Expand All @@ -94,6 +86,7 @@
#include <tlhelp32.h> #include <tlhelp32.h>
#include <psapi.h> #include <psapi.h>
#include <math.h> #include <math.h>
#include <mmreg.h>


#define STACKVAR(type, varname, count) type *varname=reinterpret_cast<type *>(_alloca(sizeof(type) * (count))) #define STACKVAR(type, varname, count) type *varname=reinterpret_cast<type *>(_alloca(sizeof(type) * (count)))


Expand Down

0 comments on commit 617975e

Please sign in to comment.