Add DJGPP -specific code to i_swap.h

This commit is contained in:
Turo Lamminen
2024-04-23 20:23:03 +03:00
parent 0e30ce7f95
commit 278709ec42
+18 -1
View File
@@ -22,6 +22,19 @@
#ifdef FEATURE_SOUND
#ifdef __DJGPP__
#define SHORT(x) ((signed short) (x))
#define LONG(x) ((signed int) (x))
#define SYS_LITTLE_ENDIAN
#else // __DJGPP__
#include <SDL_endian.h>
// Endianess handling.
@@ -55,7 +68,11 @@
#define doom_wtohs(x) (short int)(x)
#endif
#else
#endif // __DJGPP__
#else // FEATURE_SOUND
#define SHORT(x) ((signed short) (x))
#define LONG(x) ((signed int) (x))