diff options
Diffstat (limited to 'src/plugins/ebml_extractor.c')
-rw-r--r-- | src/plugins/ebml_extractor.c | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/src/plugins/ebml_extractor.c b/src/plugins/ebml_extractor.c index 9dfbbfa..4661804 100644 --- a/src/plugins/ebml_extractor.c +++ b/src/plugins/ebml_extractor.c | |||
@@ -28,42 +28,13 @@ | |||
28 | #include "extractor.h" | 28 | #include "extractor.h" |
29 | #include <stdint.h> | 29 | #include <stdint.h> |
30 | 30 | ||
31 | #include "le_architecture.h" | ||
32 | |||
31 | #ifndef DEBUG_EBML | 33 | #ifndef DEBUG_EBML |
32 | # define DEBUG_EBML 0 | 34 | # define DEBUG_EBML 0 |
33 | #endif | 35 | #endif |
34 | 36 | ||
35 | #if WINDOWS | 37 | #if WINDOWS |
36 | #include <sys/param.h> /* #define BYTE_ORDER */ | ||
37 | #endif | ||
38 | #ifndef __BYTE_ORDER | ||
39 | #ifdef _BYTE_ORDER | ||
40 | #define __BYTE_ORDER _BYTE_ORDER | ||
41 | #else | ||
42 | #ifdef BYTE_ORDER | ||
43 | #define __BYTE_ORDER BYTE_ORDER | ||
44 | #endif | ||
45 | #endif | ||
46 | #endif | ||
47 | #ifndef __BIG_ENDIAN | ||
48 | #ifdef _BIG_ENDIAN | ||
49 | #define __BIG_ENDIAN _BIG_ENDIAN | ||
50 | #else | ||
51 | #ifdef BIG_ENDIAN | ||
52 | #define __BIG_ENDIAN BIG_ENDIAN | ||
53 | #endif | ||
54 | #endif | ||
55 | #endif | ||
56 | #ifndef __LITTLE_ENDIAN | ||
57 | #ifdef _LITTLE_ENDIAN | ||
58 | #define __LITTLE_ENDIAN _LITTLE_ENDIAN | ||
59 | #else | ||
60 | #ifdef LITTLE_ENDIAN | ||
61 | #define __LITTLE_ENDIAN LITTLE_ENDIAN | ||
62 | #endif | ||
63 | #endif | ||
64 | #endif | ||
65 | |||
66 | #if WINDOWS | ||
67 | /* According to http://old.nabble.com/Porting-localtime_r-and-gmtime_r-td15282276.html | 38 | /* According to http://old.nabble.com/Porting-localtime_r-and-gmtime_r-td15282276.html |
68 | * msvcrt.dll does have thread-safe gmtime implementation, | 39 | * msvcrt.dll does have thread-safe gmtime implementation, |
69 | * even though the documentation says otherwise. | 40 | * even though the documentation says otherwise. |