Removing useless endian stuff that's pointless for DOS.
authorDavid Griffith <dave@661.org>
Sun, 19 May 2019 05:15:01 +0000 (22:15 -0700)
committerDavid Griffith <dave@661.org>
Sun, 19 May 2019 05:18:53 +0000 (22:18 -0700)
src/dos/bcblorb.c
src/dos/blorb.h

index be56cdf2ea1c4db086c3a26eb61d1159f4efab0d..211dabc6e1444b5e331f23196dff790245996cce 100644 (file)
 #include "blorb.h"
 #include "blorblow.h"
 
-/* This endian stuff needs to be fixed with something from
- * http://www.ibm.com/developerworks/aix/library/au-endianc/index.html
- */
-
-#ifdef BLORB_BIG_ENDIAN
-static char contentsticker[] = "\nBlorb Library 1.0 (big-endian)\n";
-#define bb_native2(v) (v)
-#define bb_native4(v) (v)
-#endif
-
-#ifdef BLORB_LITTLE_ENDIAN
-static char contentsticker[] = "\nBlorb Library 1.0 (little-endian)\n";
 #define bb_native2(v)   \
     ( (((uint16)(v) >> 8) & 0x00ff)    \
     | (((uint16)(v) << 8) & 0xff00))
@@ -31,15 +19,6 @@ static char contentsticker[] = "\nBlorb Library 1.0 (little-endian)\n";
     | (((uint32)(v) >>  8) & 0x0000ff00)    \
     | (((uint32)(v) <<  8) & 0x00ff0000)   \
     | (((uint32)(v) << 24) & 0xff000000))
-#endif
-
-#ifdef CRAPOLA
-#ifndef bb_native4
-#error "You must define either BLORB_BIG_ENDIAN"
-#error "or BLORB_LITTLE_ENDIAN in blorb.h in order"
-#error "to compile this library."
-#endif
-#endif /* CRAPOLA */
 
 static int lib_inited = FALSE;
 
index aecc3fc82207fc90de15d176db297a368551fa97..d3e3997a20446519e8b1c88448509fc4d8490afd 100644 (file)
@@ -15,9 +15,6 @@
     and uint16 a 16-bit unsigned numeric type. You should also uncomment\r
     exactly one of the two ENDIAN definitions. */\r
 \r
-/* #define BLORB_BIG_ENDIAN */\r
-\r
-#define BLORB_LITTLE_ENDIAN\r
 typedef unsigned long uint32;\r
 typedef unsigned short uint16;\r
 \r