From: Turo Lamminen Date: Tue, 23 Apr 2024 17:23:03 +0000 (+0300) Subject: Add DJGPP -specific code to i_swap.h X-Git-Url: https://git.0x19.co/screenshots/ubuntu.png?a=commitdiff_plain;h=278709ec427edb533104d25ca5a9969444ba7f3e;p=doomgeneric-snom360 Add DJGPP -specific code to i_swap.h --- 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))