From d07b8845026efece53960f872d55b9e4348fd34a Mon Sep 17 00:00:00 2001 From: Simon Sobisch Date: Wed, 10 May 2023 12:27:06 +0200 Subject: [PATCH] explicit specify to not support WIDE=Y for DOS port * raise error by the preprocessor in the port specific include file * note in README pointing to DOSVGA port fixes #290 (by explicit and documented "break") --- dos/README.md | 2 ++ dos/pdcdos.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/dos/README.md b/dos/README.md index ad05ce69..1a5d7e38 100644 --- a/dos/README.md +++ b/dos/README.md @@ -18,6 +18,8 @@ Building Watcom, specifying "MODEL=f" (flat) will automatically switch to a 32-bit build. + Note: if you want WIDE support use the DOSVGA port instead. + - Optionally, you can build in a different directory than the platform directory by setting PDCURSES_SRCDIR to point to the directory where you unpacked PDCurses, and changing to your target directory: diff --git a/dos/pdcdos.h b/dos/pdcdos.h index e935d81b..2f45791c 100644 --- a/dos/pdcdos.h +++ b/dos/pdcdos.h @@ -1,6 +1,11 @@ /* PDCurses */ #include + +#if defined( PDC_WIDE) + #error DOS port has no WIDE support +#endif + #include /*----------------------------------------------------------------------