rpcsx/rpcs3/stb_image.cpp

31 lines
1,003 B
C++
Raw Normal View History

2016-01-06 02:52:48 +03:00
#include "stdafx.h"
// Defines STB_IMAGE_IMPLEMENTATION *once* for stb_image.h includes (Should this be placed somewhere else?)
#define STB_IMAGE_IMPLEMENTATION
2019-12-01 20:14:58 +03:00
// Sneak in truetype as well.
#define STB_TRUETYPE_IMPLEMENTATION
// This header generates lots of errors, so we ignore those (not rpcs3 code)
2019-12-01 20:14:58 +03:00
#ifdef _MSC_VER
#pragma warning(push, 0)
#include <stb_image.h>
2019-12-01 20:14:58 +03:00
#include <stb_truetype.h>
#pragma warning(pop)
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wall"
#pragma GCC diagnostic ignored "-Wextra"
2019-11-30 02:11:28 +03:00
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
2021-03-21 18:02:21 +03:00
#pragma GCC diagnostic ignored "-Wcast-qual"
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
2021-03-13 18:03:08 +03:00
#ifndef __clang__
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
2021-03-13 18:03:08 +03:00
#pragma GCC diagnostic ignored "-Wduplicated-branches"
#endif
#pragma GCC diagnostic ignored "-Wsign-compare"
#include <stb_image.h>
2019-12-01 20:14:58 +03:00
#include <stb_truetype.h>
#pragma GCC diagnostic pop
#endif