mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
31 lines
1003 B
C++
31 lines
1003 B
C++
#include "stdafx.h"
|
|
// Defines STB_IMAGE_IMPLEMENTATION *once* for stb_image.h includes (Should this be placed somewhere else?)
|
|
#define STB_IMAGE_IMPLEMENTATION
|
|
|
|
// Sneak in truetype as well.
|
|
#define STB_TRUETYPE_IMPLEMENTATION
|
|
|
|
// This header generates lots of errors, so we ignore those (not rpcs3 code)
|
|
#ifdef _MSC_VER
|
|
#pragma warning(push, 0)
|
|
#include <stb_image.h>
|
|
#include <stb_truetype.h>
|
|
#pragma warning(pop)
|
|
#else
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wall"
|
|
#pragma GCC diagnostic ignored "-Wextra"
|
|
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#pragma GCC diagnostic ignored "-Wcast-qual"
|
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
|
#ifndef __clang__
|
|
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
|
#pragma GCC diagnostic ignored "-Wduplicated-branches"
|
|
#endif
|
|
#pragma GCC diagnostic ignored "-Wsign-compare"
|
|
#include <stb_image.h>
|
|
#include <stb_truetype.h>
|
|
#pragma GCC diagnostic pop
|
|
#endif
|