Browse code

Mon Feb 9 14:03:50 GMT 2004 (trog) -----------------------------------

* libclamav/vba_extract.c: Fix endian macros in this
aswell.


git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@259 77e5149b-7576-45b1-b177-96237e5ba77b

Trog authored on 2004/02/09 23:01:40
Showing 2 changed files
... ...
@@ -1,3 +1,9 @@
1
+Mon Feb  9 14:03:50 GMT 2004 (trog)
2
+-----------------------------------
3
+
4
+  * libclamav/vba_extract.c: Fix endian macros in this
5
+	aswell.
6
+
1 7
 Mon Feb  9 13:52:30 GMT 2004 (trog)
2 8
 -----------------------------------
3 9
 
... ...
@@ -29,6 +29,10 @@
29 29
 #include <stdlib.h>
30 30
 #include <ctype.h>
31 31
 
32
+#if HAVE_CONFIG_H
33
+#include "clamav-config.h"
34
+#endif
35
+
32 36
 #include "vba_extract.h"
33 37
 
34 38
 #define FALSE (0)
... ...
@@ -42,7 +46,7 @@ typedef struct vba_version_tag {
42 42
 } vba_version_t;
43 43
 
44 44
 
45
-#ifdef WORDS_LITTLEENDIAN
45
+#if WORDS_BIGENDIAN == 0
46 46
 #define vba_endian_convert_16(v)       (v)
47 47
 #else
48 48
 static uint16_t vba_endian_convert_16(uint16_t v)
... ...
@@ -51,7 +55,7 @@ static uint16_t vba_endian_convert_16(uint16_t v)
51 51
 }
52 52
 #endif
53 53
  
54
-#ifdef WORDS_LITTLEENDIAN
54
+#if WORDS_BIGENDIAN == 0
55 55
 #define vba_endian_convert_32(v)    (v)
56 56
 #else
57 57
 static uint32_t vba_endian_convert_32(uint32_t v)