diff options
Diffstat (limited to 'core/fxge/win32/fx_win32_gdipext.cpp')
-rw-r--r-- | core/fxge/win32/fx_win32_gdipext.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/core/fxge/win32/fx_win32_gdipext.cpp b/core/fxge/win32/fx_win32_gdipext.cpp index d3135a249c..2d19808517 100644 --- a/core/fxge/win32/fx_win32_gdipext.cpp +++ b/core/fxge/win32/fx_win32_gdipext.cpp @@ -4,25 +4,25 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -#include "core/fxcrt/fx_system.h" - -#if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ #include <windows.h> -#include <algorithm> - -namespace Gdiplus { -using std::min; -using std::max; -} // namespace Gdiplus -#include <gdiplus.h> +#include <algorithm> +#include "core/fxcrt/fx_system.h" #include "core/fxge/cfx_gemodule.h" #include "core/fxge/cfx_graphstatedata.h" #include "core/fxge/cfx_pathdata.h" #include "core/fxge/win32/cfx_windowsdib.h" #include "core/fxge/win32/win32_int.h" +// Has to come before gdiplus.h +namespace Gdiplus { +using std::min; +using std::max; +} // namespace Gdiplus + +#include <gdiplus.h> // NOLINT + using namespace Gdiplus; // NOLINT using namespace Gdiplus::DllExports; // NOLINT @@ -1524,4 +1524,3 @@ CFX_DIBitmap* CGdiplusExt::LoadDIBitmap(WINDIB_Open_Args_ args) { FreeDIBitmap(pInfo); return pDIBitmap; } -#endif |