From 278709ec427edb533104d25ca5a9969444ba7f3e Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 23 Apr 2024 20:23:03 +0300 Subject: [PATCH] Add DJGPP -specific code to i_swap.h --- doomgeneric/i_swap.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/doomgeneric/i_swap.h b/doomgeneric/i_swap.h index d6a5b48..11135c0 100644 --- a/doomgeneric/i_swap.h +++ b/doomgeneric/i_swap.h @@ -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 // 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))