summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2019-03-04 19:21:13 +0100
committerPatric Stout <truebrain@openttd.org>2019-03-05 22:03:00 +0100
commit7784d7771362f98145f17c469430e0f3e3b207b5 (patch)
tree30495b40f91078d62b4ef5b4f4c0d180cb569a19 /src/stdafx.h
parentdb49efe29afe92cac12184f5562ebc8e4a6795fa (diff)
downloadopenttd-7784d7771362f98145f17c469430e0f3e3b207b5.tar.xz
Remove: MorphOS / AmigaOS support
In 10 years there is no commit to change how MorphOS works, and we have no active maintainer for it. It is unlikely it works in its current state (but not impossible). With the arrival of SDL2 (and removal of SDL), MorphOS is no longer support. There is an SDL2 port for MorphOS, but it is not maintained by upstream SDL2, and nobody can currently test it out. If anyone wants to re-add MorphOS, please do (revert this patch, fix the problems, and create a Pull Request). If you need any help doing so, let us know! It is not that we don't like MorphOS, it is that we don't have anyone fixing the problems :(
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h34
1 files changed, 5 insertions, 29 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 6e96e98fd..80130ff4d 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -29,9 +29,9 @@
/* It seems that we need to include stdint.h before anything else
* We need INT64_MAX, which for most systems comes from stdint.h. However, MSVC
- * does not have stdint.h and apparently neither does MorphOS.
+ * does not have stdint.h.
* For OSX the inclusion is already done in osx_stdafx.h. */
-#if !defined(__APPLE__) && (!defined(_MSC_VER) || _MSC_VER >= 1600) && !defined(__MORPHOS__)
+#if !defined(__APPLE__) && (!defined(_MSC_VER) || _MSC_VER >= 1600)
#if defined(SUNOS)
/* SunOS/Solaris does not have stdint.h, but inttypes.h defines everything
* stdint.h defines and we need. */
@@ -104,30 +104,6 @@
#include <alloca.h>
#endif
-#if defined(__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 */
- #if defined(amigaos)
- #undef amigaos
- #endif
- #if defined(__amigaos__)
- #undef __amigaos__
- # endif
- #if defined(__AMIGA__)
- #undef __AMIGA__
- #endif
- #if defined(AMIGA)
- #undef AMIGA
- #endif
- #if defined(amiga)
- #undef amiga
- #endif
- /* Act like we already included this file, as it somehow gives linkage problems
- * (mismatch linkage of C++ and C between this include and unistd.h). */
- #define CLIB_USERGROUP_PROTOS_H
-#endif /* __MORPHOS__ */
-
/* Stuff for GCC */
#if defined(__GNUC__)
#define NORETURN __attribute__ ((noreturn))
@@ -331,7 +307,7 @@
typedef unsigned char byte;
/* This is already defined in unix, but not in QNX Neutrino (6.x)*/
-#if (!defined(UNIX) && !defined(__CYGWIN__) && !defined(__BEOS__) && !defined(__HAIKU__) && !defined(__MORPHOS__)) || defined(__QNXNTO__)
+#if (!defined(UNIX) && !defined(__CYGWIN__) && !defined(__BEOS__) && !defined(__HAIKU__)) || defined(__QNXNTO__)
typedef unsigned int uint;
#endif
@@ -457,8 +433,8 @@ void NORETURN CDECL error(const char *str, ...) WARN_FORMAT(1, 2);
#define OTTD_ASSERT
#endif
-#if defined(MORPHOS) || defined(__NDS__) || defined(__DJGPP__)
- /* MorphOS and NDS don't have C++ conformant _stricmp... */
+#if defined(__NDS__) || defined(__DJGPP__)
+ /* DJGPP doesn't have C++ conformant _stricmp... */
#define _stricmp stricmp
#elif defined(OPENBSD)
/* OpenBSD uses strcasecmp(3) */