summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2019-03-19 22:23:09 +0100
committerPatric Stout <truebrain@openttd.org>2019-03-19 23:22:51 +0100
commit72c5f2b3eed77120d86ecf636e07c71eb23b4bd5 (patch)
tree12c5cf8d3445bfa072f90aec5d7de92c6be8056b /src
parent559d4e833560bfd0a62ea65f5556920122a4930d (diff)
downloadopenttd-72c5f2b3eed77120d86ecf636e07c71eb23b4bd5.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/endian_type.hpp2
-rw-r--r--src/cpu.cpp2
-rw-r--r--src/fileio.cpp6
-rw-r--r--src/intro_gui.cpp2
-rw-r--r--src/lang/afrikaans.txt1
-rw-r--r--src/lang/arabic_egypt.txt1
-rw-r--r--src/lang/basque.txt1
-rw-r--r--src/lang/belarusian.txt1
-rw-r--r--src/lang/brazilian_portuguese.txt1
-rw-r--r--src/lang/bulgarian.txt1
-rw-r--r--src/lang/catalan.txt1
-rw-r--r--src/lang/croatian.txt1
-rw-r--r--src/lang/czech.txt1
-rw-r--r--src/lang/danish.txt1
-rw-r--r--src/lang/dutch.txt1
-rw-r--r--src/lang/english.txt1
-rw-r--r--src/lang/english_AU.txt1
-rw-r--r--src/lang/english_US.txt1
-rw-r--r--src/lang/esperanto.txt1
-rw-r--r--src/lang/estonian.txt1
-rw-r--r--src/lang/faroese.txt1
-rw-r--r--src/lang/finnish.txt1
-rw-r--r--src/lang/french.txt1
-rw-r--r--src/lang/gaelic.txt1
-rw-r--r--src/lang/galician.txt1
-rw-r--r--src/lang/german.txt1
-rw-r--r--src/lang/greek.txt1
-rw-r--r--src/lang/hebrew.txt1
-rw-r--r--src/lang/hungarian.txt1
-rw-r--r--src/lang/icelandic.txt1
-rw-r--r--src/lang/indonesian.txt1
-rw-r--r--src/lang/irish.txt1
-rw-r--r--src/lang/italian.txt1
-rw-r--r--src/lang/japanese.txt1
-rw-r--r--src/lang/korean.txt1
-rw-r--r--src/lang/latin.txt1
-rw-r--r--src/lang/latvian.txt1
-rw-r--r--src/lang/lithuanian.txt1
-rw-r--r--src/lang/luxembourgish.txt1
-rw-r--r--src/lang/malay.txt1
-rw-r--r--src/lang/norwegian_bokmal.txt1
-rw-r--r--src/lang/norwegian_nynorsk.txt1
-rw-r--r--src/lang/polish.txt1
-rw-r--r--src/lang/portuguese.txt1
-rw-r--r--src/lang/romanian.txt1
-rw-r--r--src/lang/russian.txt1
-rw-r--r--src/lang/serbian.txt1
-rw-r--r--src/lang/simplified_chinese.txt1
-rw-r--r--src/lang/slovak.txt1
-rw-r--r--src/lang/slovenian.txt1
-rw-r--r--src/lang/spanish.txt1
-rw-r--r--src/lang/spanish_MX.txt1
-rw-r--r--src/lang/swedish.txt1
-rw-r--r--src/lang/tamil.txt1
-rw-r--r--src/lang/thai.txt1
-rw-r--r--src/lang/traditional_chinese.txt1
-rw-r--r--src/lang/turkish.txt1
-rw-r--r--src/lang/ukrainian.txt1
-rw-r--r--src/lang/unfinished/chuvash.txt1
-rw-r--r--src/lang/unfinished/frisian.txt1
-rw-r--r--src/lang/unfinished/persian.txt1
-rw-r--r--src/lang/unfinished/urdu.txt1
-rw-r--r--src/lang/vietnamese.txt1
-rw-r--r--src/lang/welsh.txt1
-rw-r--r--src/stdafx.h14
-rw-r--r--src/video/allegro_v.cpp12
66 files changed, 5 insertions, 93 deletions
diff --git a/src/core/endian_type.hpp b/src/core/endian_type.hpp
index 6e5defc64..1cacf6c0c 100644
--- a/src/core/endian_type.hpp
+++ b/src/core/endian_type.hpp
@@ -26,7 +26,7 @@
#define TTD_BIG_ENDIAN 1
/* Windows has always LITTLE_ENDIAN */
-#if defined(_WIN32) || defined(__OS2__) || defined(__HAIKU__) || defined(__DJGPP__)
+#if defined(_WIN32) || defined(__OS2__) || defined(__HAIKU__)
# define TTD_ENDIAN TTD_LITTLE_ENDIAN
#elif defined(OSX)
# include <sys/types.h>
diff --git a/src/cpu.cpp b/src/cpu.cpp
index 9393ea061..8d5eb5e5e 100644
--- a/src/cpu.cpp
+++ b/src/cpu.cpp
@@ -35,7 +35,7 @@ unsigned __int64 ottd_rdtsc();
#endif
/* rdtsc for all other *nix-en (hopefully). Use GCC syntax */
-#if (defined(__i386__) || defined(__x86_64__)) && !defined(__DJGPP__) && !defined(RDTSC_AVAILABLE)
+#if (defined(__i386__) || defined(__x86_64__)) && !defined(RDTSC_AVAILABLE)
uint64 ottd_rdtsc()
{
uint32 high, low;
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 9f0db9e65..22adb76d5 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -1000,10 +1000,6 @@ static bool ChangeWorkingDirectoryToExecutable(const char *exe)
char *s = strrchr(tmp, PATHSEPCHAR);
if (s != NULL) {
*s = '\0';
-#if defined(__DJGPP__)
- /* If we want to go to the root, we can't use cd C:, but we must use '/' */
- if (s > tmp && *(s - 1) == ':') chdir("/");
-#endif
if (chdir(tmp) != 0) {
DEBUG(misc, 0, "Directory with the binary does not exist?");
} else {
@@ -1056,7 +1052,7 @@ void DetermineBasePaths(const char *exe)
AppendPathSeparator(tmp, lastof(tmp));
_searchpaths[SP_PERSONAL_DIR_XDG] = stredup(tmp);
#endif
-#if defined(DOS) || defined(OS2) || !defined(WITH_PERSONAL_DIR)
+#if defined(OS2) || !defined(WITH_PERSONAL_DIR)
_searchpaths[SP_PERSONAL_DIR] = NULL;
#else
#ifdef __HAIKU__
diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp
index a7a444cc8..c0d78028b 100644
--- a/src/intro_gui.cpp
+++ b/src/intro_gui.cpp
@@ -299,8 +299,6 @@ void AskExitGame()
SetDParam(0, STR_OSNAME_OS2);
#elif defined(SUNOS)
SetDParam(0, STR_OSNAME_SUNOS);
-#elif defined(DOS)
- SetDParam(0, STR_OSNAME_DOS);
#else
SetDParam(0, STR_OSNAME_UNIX);
#endif
diff --git a/src/lang/afrikaans.txt b/src/lang/afrikaans.txt
index 488332081..d8b05cac7 100644
--- a/src/lang/afrikaans.txt
+++ b/src/lang/afrikaans.txt
@@ -1767,7 +1767,6 @@ STR_QUIT_NO :{BLACK}Nee
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/arabic_egypt.txt b/src/lang/arabic_egypt.txt
index 3da270ad3..ec0017d67 100644
--- a/src/lang/arabic_egypt.txt
+++ b/src/lang/arabic_egypt.txt
@@ -1439,7 +1439,6 @@ STR_QUIT_NO :{BLACK}لا
# Supported OSes
STR_OSNAME_WINDOWS :ويندوز
-STR_OSNAME_DOS :دوس
STR_OSNAME_UNIX :يونكس
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :هايكو
diff --git a/src/lang/basque.txt b/src/lang/basque.txt
index 046e0f781..6cec7bfd2 100644
--- a/src/lang/basque.txt
+++ b/src/lang/basque.txt
@@ -1679,7 +1679,6 @@ STR_QUIT_NO :{BLACK}Ez
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/belarusian.txt b/src/lang/belarusian.txt
index 3baf40f69..917374e5d 100644
--- a/src/lang/belarusian.txt
+++ b/src/lang/belarusian.txt
@@ -2092,7 +2092,6 @@ STR_QUIT_NO :{BLACK}Не
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/brazilian_portuguese.txt b/src/lang/brazilian_portuguese.txt
index fb9cce305..b0c8a5816 100644
--- a/src/lang/brazilian_portuguese.txt
+++ b/src/lang/brazilian_portuguese.txt
@@ -1783,7 +1783,6 @@ STR_QUIT_NO :{BLACK}Não
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/bulgarian.txt b/src/lang/bulgarian.txt
index 0ed560da1..ff4487443 100644
--- a/src/lang/bulgarian.txt
+++ b/src/lang/bulgarian.txt
@@ -1715,7 +1715,6 @@ STR_QUIT_NO :{BLACK}Не
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :ДОС
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/catalan.txt b/src/lang/catalan.txt
index 4d889fd3b..012a5d316 100644
--- a/src/lang/catalan.txt
+++ b/src/lang/catalan.txt
@@ -1798,7 +1798,6 @@ STR_QUIT_NO :{BLACK}No
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/croatian.txt b/src/lang/croatian.txt
index 701bd7fb9..8bc45b169 100644
--- a/src/lang/croatian.txt
+++ b/src/lang/croatian.txt
@@ -1895,7 +1895,6 @@ STR_QUIT_NO :{BLACK}Ne
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/czech.txt b/src/lang/czech.txt
index 5a2212875..618527bd9 100644
--- a/src/lang/czech.txt
+++ b/src/lang/czech.txt
@@ -1861,7 +1861,6 @@ STR_QUIT_NO :{BLACK}Ne
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unixu
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/danish.txt b/src/lang/danish.txt
index 5a30026ef..5adbdff76 100644
--- a/src/lang/danish.txt
+++ b/src/lang/danish.txt
@@ -1799,7 +1799,6 @@ STR_QUIT_NO :{BLACK}Nej
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/dutch.txt b/src/lang/dutch.txt
index ced8ca5b0..546cb31aa 100644
--- a/src/lang/dutch.txt
+++ b/src/lang/dutch.txt
@@ -1799,7 +1799,6 @@ STR_QUIT_NO :{BLACK}Nee
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/english.txt b/src/lang/english.txt
index 209c452e2..45bbbc0bf 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -1799,7 +1799,6 @@ STR_QUIT_NO :{BLACK}No
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/english_AU.txt b/src/lang/english_AU.txt
index 10bed1fb4..1f3d9eef5 100644
--- a/src/lang/english_AU.txt
+++ b/src/lang/english_AU.txt
@@ -1743,7 +1743,6 @@ STR_QUIT_NO :{BLACK}No
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/english_US.txt b/src/lang/english_US.txt
index 6fccdf640..f02b1a2cd 100644
--- a/src/lang/english_US.txt
+++ b/src/lang/english_US.txt
@@ -1797,7 +1797,6 @@ STR_QUIT_NO :{BLACK}No
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/esperanto.txt b/src/lang/esperanto.txt
index 964f1f44d..12e550a16 100644
--- a/src/lang/esperanto.txt
+++ b/src/lang/esperanto.txt
@@ -1426,7 +1426,6 @@ STR_QUIT_NO :{BLACK}Ne
# Supported OSes
STR_OSNAME_WINDOWS :Vindozo
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unikso
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/estonian.txt b/src/lang/estonian.txt
index f8210e659..39e74edd3 100644
--- a/src/lang/estonian.txt
+++ b/src/lang/estonian.txt
@@ -1827,7 +1827,6 @@ STR_QUIT_NO :{BLACK}Ei
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/faroese.txt b/src/lang/faroese.txt
index d85ad04cc..803c761ca 100644
--- a/src/lang/faroese.txt
+++ b/src/lang/faroese.txt
@@ -1590,7 +1590,6 @@ STR_QUIT_NO :{BLACK}Nei
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/finnish.txt b/src/lang/finnish.txt
index 829ac5686..3cdf100dd 100644
--- a/src/lang/finnish.txt
+++ b/src/lang/finnish.txt
@@ -1799,7 +1799,6 @@ STR_QUIT_NO :{BLACK}Ei
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/french.txt b/src/lang/french.txt
index 97d2f9110..e8e14582c 100644
--- a/src/lang/french.txt
+++ b/src/lang/french.txt
@@ -1794,7 +1794,6 @@ STR_QUIT_NO :{BLACK}Non
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/gaelic.txt b/src/lang/gaelic.txt
index 36df72dce..3ed107d8b 100644
--- a/src/lang/gaelic.txt
+++ b/src/lang/gaelic.txt
@@ -1977,7 +1977,6 @@ STR_QUIT_NO :{BLACK}Chan eil
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/galician.txt b/src/lang/galician.txt
index 7f4e97f73..3fcc850c4 100644
--- a/src/lang/galician.txt
+++ b/src/lang/galician.txt
@@ -1770,7 +1770,6 @@ STR_QUIT_NO :{BLACK}Non
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/german.txt b/src/lang/german.txt
index 0a0501e61..713257785 100644
--- a/src/lang/german.txt
+++ b/src/lang/german.txt
@@ -1788,7 +1788,6 @@ STR_QUIT_NO :{BLACK}Nein
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/greek.txt b/src/lang/greek.txt
index 4ac355e6d..259106601 100644
--- a/src/lang/greek.txt
+++ b/src/lang/greek.txt
@@ -1890,7 +1890,6 @@ STR_QUIT_NO :{BLACK}Όχι
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/hebrew.txt b/src/lang/hebrew.txt
index e730e0c3e..18845ea44 100644
--- a/src/lang/hebrew.txt
+++ b/src/lang/hebrew.txt
@@ -1792,7 +1792,6 @@ STR_QUIT_NO :{BLACK}לא
# Supported OSes
STR_OSNAME_WINDOWS :חלונות
-STR_OSNAME_DOS :דוס
STR_OSNAME_UNIX :יוניקס
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :הייקו
diff --git a/src/lang/hungarian.txt b/src/lang/hungarian.txt
index 914b2a2a4..3f2c2b40e 100644
--- a/src/lang/hungarian.txt
+++ b/src/lang/hungarian.txt
@@ -1863,7 +1863,6 @@ STR_QUIT_NO :{BLACK}Nem
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/icelandic.txt b/src/lang/icelandic.txt
index 5ef33b5b2..1fada9f41 100644
--- a/src/lang/icelandic.txt
+++ b/src/lang/icelandic.txt
@@ -1631,7 +1631,6 @@ STR_QUIT_NO :{BLACK}Nei
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/indonesian.txt b/src/lang/indonesian.txt
index f2f52e7a7..ff220fc1d 100644
--- a/src/lang/indonesian.txt
+++ b/src/lang/indonesian.txt
@@ -1776,7 +1776,6 @@ STR_QUIT_NO :{BLACK}Tidak
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/irish.txt b/src/lang/irish.txt
index 61fb68954..c845d4c5f 100644
--- a/src/lang/irish.txt
+++ b/src/lang/irish.txt
@@ -1766,7 +1766,6 @@ STR_QUIT_NO :{BLACK}Níl
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/italian.txt b/src/lang/italian.txt
index 7a7f799d6..2b629806d 100644
--- a/src/lang/italian.txt
+++ b/src/lang/italian.txt
@@ -1817,7 +1817,6 @@ STR_QUIT_NO :{BLACK}No
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/japanese.txt b/src/lang/japanese.txt
index 6977a8a5b..c3c5fe89f 100644
--- a/src/lang/japanese.txt
+++ b/src/lang/japanese.txt
@@ -1766,7 +1766,6 @@ STR_QUIT_NO :{BLACK}いい
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/korean.txt b/src/lang/korean.txt
index 803ec85b0..a57e08bda 100644
--- a/src/lang/korean.txt
+++ b/src/lang/korean.txt
@@ -1800,7 +1800,6 @@ STR_QUIT_NO :{BLACK}아니
# Supported OSes
STR_OSNAME_WINDOWS :{G=f}Windows
-STR_OSNAME_DOS :{G=f}DOS
STR_OSNAME_UNIX :{G=f}Unix
STR_OSNAME_OSX :{G=f}OS{NBSP}X
STR_OSNAME_HAIKU :{G=f}Haiku
diff --git a/src/lang/latin.txt b/src/lang/latin.txt
index 63ebbcbc1..10a0ea29b 100644
--- a/src/lang/latin.txt
+++ b/src/lang/latin.txt
@@ -1967,7 +1967,6 @@ STR_QUIT_NO :{BLACK}Non
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/latvian.txt b/src/lang/latvian.txt
index 05ff2588b..c457ac001 100644
--- a/src/lang/latvian.txt
+++ b/src/lang/latvian.txt
@@ -1713,7 +1713,6 @@ STR_QUIT_NO :{BLACK}Nē
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/lithuanian.txt b/src/lang/lithuanian.txt
index 742e192ee..cf5290f6d 100644
--- a/src/lang/lithuanian.txt
+++ b/src/lang/lithuanian.txt
@@ -1985,7 +1985,6 @@ STR_QUIT_NO :{BLACK}Ne
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/luxembourgish.txt b/src/lang/luxembourgish.txt
index 916b263e9..bfebe82f8 100644
--- a/src/lang/luxembourgish.txt
+++ b/src/lang/luxembourgish.txt
@@ -1769,7 +1769,6 @@ STR_QUIT_NO :{BLACK}Nee
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/malay.txt b/src/lang/malay.txt
index a5553ad6a..ddaf825a8 100644
--- a/src/lang/malay.txt
+++ b/src/lang/malay.txt
@@ -1527,7 +1527,6 @@ STR_QUIT_NO :{BLACK}Tidak
# Supported OSes
STR_OSNAME_WINDOWS :Tetingkap
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/norwegian_bokmal.txt b/src/lang/norwegian_bokmal.txt
index 3fae530b8..8c565bec8 100644
--- a/src/lang/norwegian_bokmal.txt
+++ b/src/lang/norwegian_bokmal.txt
@@ -1802,7 +1802,6 @@ STR_QUIT_NO :{BLACK}Nei
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/norwegian_nynorsk.txt b/src/lang/norwegian_nynorsk.txt
index e998101d3..8e6948d9a 100644
--- a/src/lang/norwegian_nynorsk.txt
+++ b/src/lang/norwegian_nynorsk.txt
@@ -1689,7 +1689,6 @@ STR_QUIT_NO :{BLACK}Nei
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/polish.txt b/src/lang/polish.txt
index 2b7ee1b4a..f44de0b91 100644
--- a/src/lang/polish.txt
+++ b/src/lang/polish.txt
@@ -2167,7 +2167,6 @@ STR_QUIT_NO :{BLACK}Nie
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/portuguese.txt b/src/lang/portuguese.txt
index e2ba14b44..503dcacf6 100644
--- a/src/lang/portuguese.txt
+++ b/src/lang/portuguese.txt
@@ -1794,7 +1794,6 @@ STR_QUIT_NO :{BLACK}Não
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/romanian.txt b/src/lang/romanian.txt
index e1deb9971..b1c80d97d 100644
--- a/src/lang/romanian.txt
+++ b/src/lang/romanian.txt
@@ -1747,7 +1747,6 @@ STR_QUIT_NO :{BLACK}Nu
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/russian.txt b/src/lang/russian.txt
index af60eb745..e6b7237b3 100644
--- a/src/lang/russian.txt
+++ b/src/lang/russian.txt
@@ -1951,7 +1951,6 @@ STR_QUIT_NO :{BLACK}Нет
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/serbian.txt b/src/lang/serbian.txt
index fd8da75b7..b1efd373e 100644
--- a/src/lang/serbian.txt
+++ b/src/lang/serbian.txt
@@ -1973,7 +1973,6 @@ STR_QUIT_NO :{BLACK}Ne
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/simplified_chinese.txt b/src/lang/simplified_chinese.txt
index 78e062342..61983f80a 100644
--- a/src/lang/simplified_chinese.txt
+++ b/src/lang/simplified_chinese.txt
@@ -1776,7 +1776,6 @@ STR_QUIT_NO :{BLACK}否
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/slovak.txt b/src/lang/slovak.txt
index 6aec80989..8cb3a3504 100644
--- a/src/lang/slovak.txt
+++ b/src/lang/slovak.txt
@@ -1834,7 +1834,6 @@ STR_QUIT_NO :{BLACK}Nie
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/slovenian.txt b/src/lang/slovenian.txt
index 2adfe3343..63bbff4ef 100644
--- a/src/lang/slovenian.txt
+++ b/src/lang/slovenian.txt
@@ -1920,7 +1920,6 @@ STR_QUIT_NO :{BLACK}Ne
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/spanish.txt b/src/lang/spanish.txt
index 158998666..b2ed3fc17 100644
--- a/src/lang/spanish.txt
+++ b/src/lang/spanish.txt
@@ -1779,7 +1779,6 @@ STR_QUIT_NO :{BLACK}No
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/spanish_MX.txt b/src/lang/spanish_MX.txt
index b57aea35b..946c35f0c 100644
--- a/src/lang/spanish_MX.txt
+++ b/src/lang/spanish_MX.txt
@@ -1794,7 +1794,6 @@ STR_QUIT_NO :{BLACK}No
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/swedish.txt b/src/lang/swedish.txt
index e4016174d..e0351daa7 100644
--- a/src/lang/swedish.txt
+++ b/src/lang/swedish.txt
@@ -1787,7 +1787,6 @@ STR_QUIT_NO :{BLACK}Nej
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/tamil.txt b/src/lang/tamil.txt
index c67f9ab06..34b413eea 100644
--- a/src/lang/tamil.txt
+++ b/src/lang/tamil.txt
@@ -1536,7 +1536,6 @@ STR_QUIT_NO :{BLACK}இல
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/thai.txt b/src/lang/thai.txt
index 99a011be6..a315f9563 100644
--- a/src/lang/thai.txt
+++ b/src/lang/thai.txt
@@ -1717,7 +1717,6 @@ STR_QUIT_NO :{BLACK}ไม
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :ระบบปฏิบัติการ Haiku
diff --git a/src/lang/traditional_chinese.txt b/src/lang/traditional_chinese.txt
index 18e146e1f..c9cbddb9c 100644
--- a/src/lang/traditional_chinese.txt
+++ b/src/lang/traditional_chinese.txt
@@ -1766,7 +1766,6 @@ STR_QUIT_NO :{BLACK}否
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/turkish.txt b/src/lang/turkish.txt
index 16e8ccfa3..93a386398 100644
--- a/src/lang/turkish.txt
+++ b/src/lang/turkish.txt
@@ -1792,7 +1792,6 @@ STR_QUIT_NO :{BLACK}Hayır
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/ukrainian.txt b/src/lang/ukrainian.txt
index a04f8b6e7..4e7b87d22 100644
--- a/src/lang/ukrainian.txt
+++ b/src/lang/ukrainian.txt
@@ -1927,7 +1927,6 @@ STR_QUIT_NO :{BLACK}Ні
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/unfinished/chuvash.txt b/src/lang/unfinished/chuvash.txt
index 8d93f1936..e858a0bbc 100644
--- a/src/lang/unfinished/chuvash.txt
+++ b/src/lang/unfinished/chuvash.txt
@@ -662,7 +662,6 @@ STR_QUIT_NO :{BLACK}Ҫук
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/unfinished/frisian.txt b/src/lang/unfinished/frisian.txt
index 9e6b3d470..df1ffd3c0 100644
--- a/src/lang/unfinished/frisian.txt
+++ b/src/lang/unfinished/frisian.txt
@@ -1700,7 +1700,6 @@ STR_QUIT_NO :{BLACK}Nee
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/unfinished/persian.txt b/src/lang/unfinished/persian.txt
index 5fd873753..763f267c6 100644
--- a/src/lang/unfinished/persian.txt
+++ b/src/lang/unfinished/persian.txt
@@ -1483,7 +1483,6 @@ STR_QUIT_NO :{BLACK}خیر
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :هایکو
diff --git a/src/lang/unfinished/urdu.txt b/src/lang/unfinished/urdu.txt
index af1a108c1..73e794ca7 100644
--- a/src/lang/unfinished/urdu.txt
+++ b/src/lang/unfinished/urdu.txt
@@ -1380,7 +1380,6 @@ STR_QUIT_NO :{BLACK}نہیں
# Supported OSes
STR_OSNAME_WINDOWS :ونڈوز
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :یونیکس
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/vietnamese.txt b/src/lang/vietnamese.txt
index 0e72993f8..190541c7a 100644
--- a/src/lang/vietnamese.txt
+++ b/src/lang/vietnamese.txt
@@ -1782,7 +1782,6 @@ STR_QUIT_NO :{BLACK}Không
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/lang/welsh.txt b/src/lang/welsh.txt
index 131c05d6c..e5e451d8b 100644
--- a/src/lang/welsh.txt
+++ b/src/lang/welsh.txt
@@ -1769,7 +1769,6 @@ STR_QUIT_NO :{BLACK}Na
# Supported OSes
STR_OSNAME_WINDOWS :Windows
-STR_OSNAME_DOS :DOS
STR_OSNAME_UNIX :Unix
STR_OSNAME_OSX :OS{NBSP}X
STR_OSNAME_HAIKU :Haiku
diff --git a/src/stdafx.h b/src/stdafx.h
index 98f5d13b9..a9ed460c2 100644
--- a/src/stdafx.h
+++ b/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
diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp
index 960d7fb7c..53a42393e 100644
--- a/src/video/allegro_v.cpp
+++ b/src/video/allegro_v.cpp
@@ -440,12 +440,6 @@ const char *VideoDriver_Allegro::Start(const char * const *parm)
signal(SIGSEGV, NULL);
#endif
-#if defined(DOS)
- /* Force DOS builds to ALWAYS use full screen as
- * it can't do windowed. */
- _fullscreen = true;
-#endif
-
GetVideoModes();
if (!CreateMainSurface(_cur_resolution.width, _cur_resolution.height)) {
return "Failed to set up Allegro video";
@@ -461,7 +455,7 @@ void VideoDriver_Allegro::Stop()
if (--_allegro_instance_count == 0) allegro_exit();
}
-#if defined(UNIX) || defined(__OS2__) || defined(DOS)
+#if defined(UNIX) || defined(__OS2__)
# include <sys/time.h> /* gettimeofday */
static uint32 GetTime()
@@ -548,9 +542,6 @@ bool VideoDriver_Allegro::ChangeResolution(int w, int h)
bool VideoDriver_Allegro::ToggleFullscreen(bool fullscreen)
{
-#ifdef DOS
- return false;
-#else
_fullscreen = fullscreen;
GetVideoModes(); // get the list of available video modes
if (_num_resolutions == 0 || !this->ChangeResolution(_cur_resolution.width, _cur_resolution.height)) {
@@ -559,7 +550,6 @@ bool VideoDriver_Allegro::ToggleFullscreen(bool fullscreen)
return false;
}
return true;
-#endif
}
bool VideoDriver_Allegro::AfterBlitterChange()