Remove: DOS support
In 10 years there was no active development on DOS. Although it turned out to still work, the FPS was very bad. There is little interest in the current community to look into this. Further more, we like to switch to c++11 functions for threads, which are not implemented by DJGPP, the only current compiler for DOS. Additionally, DOS is the only platform which does not support networking. It is the reason we have tons of #ifdefs to support disabling networking. By removing DOS support, we can both use c++11 functions for threads, and remove all the code related to disabling network. Sadly, this means we have to see DOS go. Of course, if you feel up for the task, simply revert this commit, and implement stub c++11 functions for threads and stub functions for networking. We are more than happy to accept such Pull Request.
This commit is contained in:
14
src/stdafx.h
14
src/stdafx.h
@@ -242,15 +242,6 @@
|
||||
|
||||
#endif /* defined(_MSC_VER) */
|
||||
|
||||
#if defined(DOS)
|
||||
/* The DOS port does not have all signals/signal functions. */
|
||||
#define strsignal(sig) ""
|
||||
/* Use 'no floating point' for bus errors; SIGBUS does not exist
|
||||
* for DOS, SIGNOFP for other platforms. So it's fairly safe
|
||||
* to interchange those. */
|
||||
#define SIGBUS SIGNOFP
|
||||
#endif
|
||||
|
||||
/* NOTE: the string returned by these functions is only valid until the next
|
||||
* call to the same function and is not thread- or reentrancy-safe */
|
||||
#if !defined(STRGEN) && !defined(SETTINGSGEN)
|
||||
@@ -436,10 +427,7 @@ void NORETURN CDECL error(const char *str, ...) WARN_FORMAT(1, 2);
|
||||
#define OTTD_ASSERT
|
||||
#endif
|
||||
|
||||
#if defined(__DJGPP__)
|
||||
/* DJGPP doesn't have C++ conformant _stricmp... */
|
||||
#define _stricmp stricmp
|
||||
#elif defined(OPENBSD)
|
||||
#if defined(OPENBSD)
|
||||
/* OpenBSD uses strcasecmp(3) */
|
||||
#define _stricmp strcasecmp
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user