From 51f0057b673ac948de497194f3d8a6fb0c8230da Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 12 Mar 2022 17:10:11 +0000 Subject: [PATCH] Add a '#define LEGACY_WINDOWS'. This will be used to wrap some of the stranger workarounds we're keeping in this code base for the purposes of backwards compatibility to seriously old platforms like Win95. --- defs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/defs.h b/defs.h index 3c30b6b6..354c208f 100644 --- a/defs.h +++ b/defs.h @@ -42,6 +42,8 @@ #define SIZEx "Ix" #define SIZEu "Iu" uintmax_t strtoumax(const char *nptr, char **endptr, int base); +/* Also, define a LEGACY_WINDOWS flag to enable other workarounds */ +#define LEGACY_WINDOWS #else #include /* Because we still support older MSVC libraries which don't recognise the