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