]> git.0x19.co - doomgeneric-snom360/commitdiff
Add DJGPP -specific code to i_swap.h
authorTuro Lamminen <turol@iki.fi>
Tue, 23 Apr 2024 17:23:03 +0000 (20:23 +0300)
committerTuro Lamminen <turol@iki.fi>
Tue, 23 Apr 2024 17:23:03 +0000 (20:23 +0300)
doomgeneric/i_swap.h

index d6a5b484f9a4ac9c5ea664efb20ce3c687d4afb1..11135c012c07e5c8b581f79309942a4717353fbf 100644 (file)
 
 #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.
 #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))