git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1444 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2005/03/27 03:32:51... | ... |
@@ -24,7 +24,7 @@ |
24 | 24 |
#include "clamav-config.h" |
25 | 25 |
#endif |
26 | 26 |
|
27 |
-static char const rcsid[] = "$Id: tnef.c,v 1.11 2005/03/26 10:35:53 nigelhorne Exp $"; |
|
27 |
+static char const rcsid[] = "$Id: tnef.c,v 1.12 2005/03/26 18:32:51 nigelhorne Exp $"; |
|
28 | 28 |
|
29 | 29 |
#include <stdio.h> |
30 | 30 |
|
... | ... |
@@ -55,26 +55,12 @@ static int tnef_attachment(FILE *fp, const char *dir, fileblob **fbref); |
55 | 55 |
#if WORDS_BIGENDIAN == 0 |
56 | 56 |
#define host16(v) (v) |
57 | 57 |
#define host32(v) (v) |
58 |
- |
|
59 |
-#else |
|
60 |
- |
|
61 |
-#if defined(C_LINUX) |
|
62 |
-#include <byteswap.h> |
|
63 |
-#define host16(v) __bswap_16(v) |
|
64 |
-#define host32(v) __bswap_32(v) |
|
65 |
-#elif defined(C_SOLARIS) |
|
66 |
-#include <sys/byteorder.h> |
|
67 |
-#define host16(v) BSWAP_16(v) |
|
68 |
-#define host32(v) BSWAP_32(v) |
|
69 | 58 |
#else |
70 | 59 |
#define host16(v) ((v >> 8) | (v << 8)) |
71 | 60 |
#define host32(v) ((v >> 24) | ((v & 0x00FF0000) >> 8) | \ |
72 | 61 |
((v & 0x0000FF00) << 8) | (v << 24)) |
73 | 62 |
#endif |
74 | 63 |
|
75 |
-#endif |
|
76 |
- |
|
77 |
-/* FIXME: only works on little endian machines */ |
|
78 | 64 |
int |
79 | 65 |
cli_tnef(const char *dir, int desc) |
80 | 66 |
{ |