Move stb_image header into its own header file.

This commit is contained in:
Kim Kulling
2022-04-05 19:53:41 +02:00
parent fa5a8476ee
commit 97c7ab3c05
5 changed files with 66 additions and 31 deletions
+1 -15
View File
@@ -83,21 +83,7 @@ Other:
#include <sstream>
#include <string>
#if _MSC_VER // "unreferenced function has been removed" (SSE2 detection routine in x64 builds)
#pragma warning(push)
#pragma warning(disable : 4505)
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#endif
#define STB_IMAGE_STATIC
#define STB_IMAGE_IMPLEMENTATION
#include "stb/stb_image.h"
#if _MSC_VER
#pragma warning(pop)
#else
#pragma GCC diagnostic pop
#endif
#include "Common/StbCommon.h"
using namespace Assimp;