ifformat.c: fix build under WIN32
This commit is contained in:
parent
90c0fb6ea6
commit
be68b498ac
@ -34,16 +34,11 @@
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#if defined(WIN32)
|
||||
#if defined(_MSC_VER)
|
||||
#include <stdio.h>
|
||||
#if _MSC_VER < 1900
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
#define WIN32_BSWAP32 _byteswap_ulong
|
||||
#else
|
||||
#define WIN32_BSWAP32 __builtin_bswap32
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(WIN32) && !defined(USE_SDL) && !defined(USE_SDL2)
|
||||
|
||||
@ -36,6 +36,14 @@
|
||||
#include "gfx2mem.h"
|
||||
#include "gfx2log.h"
|
||||
|
||||
#if defined(WIN32)
|
||||
#if defined(_MSC_VER)
|
||||
#define WIN32_BSWAP32 _byteswap_ulong
|
||||
#else
|
||||
#define WIN32_BSWAP32 __builtin_bswap32
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//////////////////////////////////// IFF ////////////////////////////////////
|
||||
/** @defgroup IFF Interchange File Format
|
||||
* @ingroup loadsaveformats
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user