Fix compiling stb texture tool on Windows
This commit is contained in:
@@ -65,6 +65,8 @@
|
||||
|
||||
#endif
|
||||
|
||||
#undef MessageBox
|
||||
|
||||
static void stbWrite(void* context, void* data, int size)
|
||||
{
|
||||
auto file = (FileWriteStream*)context;
|
||||
|
||||
4
Source/ThirdParty/detex/detex.h
vendored
4
Source/ThirdParty/detex/detex.h
vendored
@@ -72,7 +72,11 @@ __BEGIN_DECLS
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define DETEX_INLINE_ONLY __forceinline
|
||||
#else
|
||||
#define DETEX_INLINE_ONLY __attribute__((always_inline)) inline
|
||||
#endif
|
||||
#define DETEX_RESTRICT __restrict
|
||||
|
||||
/* Maximum uncompressed block size in bytes. */
|
||||
|
||||
Reference in New Issue
Block a user