* 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
... | ... |
@@ -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) |