equal
deleted
inserted
replaced
65 # undef TTD_ALIGNMENT_4 |
65 # undef TTD_ALIGNMENT_4 |
66 # undef TTD_ALIGNMENT_2 |
66 # undef TTD_ALIGNMENT_2 |
67 # define GCC_PACK |
67 # define GCC_PACK |
68 #endif |
68 #endif |
69 |
69 |
|
70 // Windows has always LITTLE_ENDIAN |
70 #if defined(WIN32) |
71 #if defined(WIN32) |
71 # define TTD_LITTLE_ENDIAN |
72 #define TTD_LITTLE_ENDIAN |
72 #endif |
73 #else |
73 |
74 // Else include endian.h, which has the endian-type, autodetected by the Makefile |
74 #if defined(i386) |
75 #include "endian.h" |
75 # define TTD_LITTLE_ENDIAN |
|
76 #endif |
|
77 |
|
78 #if defined(__MORPHOS__) |
|
79 # define TTD_BIG_ENDIAN |
|
80 #endif |
|
81 |
|
82 // Check endianness |
|
83 #if !defined(TTD_LITTLE_ENDIAN) && !defined(TTD_BIG_ENDIAN) |
|
84 # if defined(_BIG_ENDIAN) |
|
85 # define TTD_BIG_ENDIAN |
|
86 # elif defined(_LITTLE_ENDIAN) |
|
87 # define TTD_LITTLE_ENDIAN |
|
88 # else |
|
89 # error No endianness defined, use either TTD_LITTLE_ENDIAN or TTD_BIG_ENDIAN |
|
90 #endif |
|
91 #endif |
76 #endif |
92 |
77 |
93 #if defined(UNIX) |
78 #if defined(UNIX) |
94 #define PATHSEP "/" |
79 #define PATHSEP "/" |
95 #else |
80 #else |