summaryrefslogtreecommitdiff
path: root/common/defines.h
diff options
context:
space:
mode:
authorleo2001-12-05 23:58:47 +0000
committerleo2001-12-05 23:58:47 +0000
commit727c5f90845fa2c09c61c313b6f6e343018729f0 (patch)
tree3531be35ca404279390faaeb0cc83bb0ba5b1271 /common/defines.h
parent26778001fa2296fb129762fd7e0728caef13a151 (diff)
Remove obsolete endianess code.
git-svn-id: http://svn.leocad.org/trunk@275 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/defines.h')
-rw-r--r--common/defines.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/common/defines.h b/common/defines.h
index 1bb7057..5ec1a89 100644
--- a/common/defines.h
+++ b/common/defines.h
@@ -51,19 +51,6 @@ char* strlwr(char* string);
#endif
-// Endianess handling (files are little endian).
-#ifdef LC_BIG_ENDIAN
-unsigned short SwapSHORT(unsigned short x)
-{ return (x>>8) | (x<<8); }
-unsigned long SwapLONG(unsigned long x)
-{ return (x>>24) | ((x>>8) & 0xff00) | ((x<<8) & 0xff0000) | (x<<24); }
-#define SHORT(x) ((short)SwapSHORT((unsigned short) (x)))
-#define LONG(x) ((long)SwapLONG((unsigned long) (x)))
-#else
-#define SHORT(x) (x)
-#define LONG(x) (x)
-#endif
-
/////////////////////////////////////////////////////////////////////////////
// LeoCAD constants