1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-22 05:59:10 +00:00

(svn r1236) MorphOS: added make release like in OSX (tokai)

MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
This commit is contained in:
bjarni
2004-12-22 21:12:36 +00:00
parent 64e153fc34
commit fb345e983e
13 changed files with 137 additions and 43 deletions

View File

@@ -32,6 +32,27 @@
#include <alloca.h>
#endif
#ifdef __MORPHOS__
// morphos defines certain amiga defines per default, we undefine them
// here to make the rest of source less messy and more clear what is
// required for morphos and what for amigaos
# ifdef amigaos
# undef amigaos
# endif
# ifdef __amigaos__
# undef __amigaos__
# endif
# ifdef __AMIGA__
# undef __AMIGA__
# endif
# ifdef AMIGA
# undef AMIGA
# endif
# ifdef amiga
# undef amiga
# endif
#endif /* __MORPHOS__ */
#define BSWAP32(x) ((((x) >> 24) & 0xFF) | (((x) >> 8) & 0xFF00) | (((x) << 8) & 0xFF0000) | (((x) << 24) & 0xFF000000))
#define BSWAP16(x) ((x) >> 8 | (x) << 8)
@@ -182,7 +203,7 @@ assert_compile(sizeof(uint8) == 1);
#define CloseConnection OTTD_CloseConnection
#endif
#if !(defined(__AMIGA__) && !defined(__MORPHOS__))
#ifdef __AMIGA__
// it seems AmigaOS already have a Point declared
#define Point OTTD_AMIGA_POINT
#endif