diff th_util.h @ 483:85039ab7e6ab

Add simplistic support for DJGPP/DOS.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 19 Feb 2019 06:12:18 +0200
parents e4ce60239d16
children 41c1d786ff08
line wrap: on
line diff
--- a/th_util.h	Tue Feb 19 05:40:14 2019 +0200
+++ b/th_util.h	Tue Feb 19 06:12:18 2019 +0200
@@ -14,6 +14,9 @@
 
 #if defined(__WIN64) || defined(_WIN64) || defined(__WIN32) || defined(_WIN32)
 #  define TH_PLAT_WINDOWS 1
+#elif defined(__DJGPP__) && __DJGPP__ >= 2
+#  define TH_PLAT_DOS 1
+#  undef __STRICT_ANSI__
 #else
 #  define TH_PLAT_UNIX 1
 #endif