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