Fix warnings in raylib project from MSVC (#2871)
This commit is contained in:
parent
116603e61c
commit
edaca16d7c
4 changed files with 56 additions and 27 deletions
|
|
@ -163,8 +163,17 @@
|
|||
#define QOI_MALLOC RL_MALLOC
|
||||
#define QOI_FREE RL_FREE
|
||||
|
||||
#if defined(_MSC_VER ) // qoi has warnings on windows, so disable them just for this file
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4267)
|
||||
#endif
|
||||
#define QOI_IMPLEMENTATION
|
||||
#include "external/qoi.h"
|
||||
|
||||
#if defined(_MSC_VER )
|
||||
#pragma warning( pop )
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(SUPPORT_IMAGE_EXPORT)
|
||||
|
|
|
|||
Loading…
Reference in a new issue