ifformat.c: fix build under WIN32

This commit is contained in:
Thomas Bernard
2019-12-07 17:09:21 +01:00
parent 90c0fb6ea6
commit be68b498ac
2 changed files with 8 additions and 5 deletions

View File

@@ -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