mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 04:16:12 +01:00
Fix warnings in tools for MinGW (#428)
This commit is contained in:
@@ -9,8 +9,10 @@
|
||||
// http://go.microsoft.com/fwlink/?LinkId=248926
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4005)
|
||||
#endif
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#define NOMINMAX
|
||||
#define NODRAWTEXT
|
||||
@@ -18,7 +20,9 @@
|
||||
#define NOMCX
|
||||
#define NOSERVICE
|
||||
#define NOHELP
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#if __cplusplus < 201703L
|
||||
#error Requires C++17 (and /Zc:__cplusplus with MSVC)
|
||||
@@ -46,7 +50,9 @@
|
||||
|
||||
#include <dxgiformat.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4619 4616 26812)
|
||||
#endif
|
||||
|
||||
#include "DirectXTex.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user