From bd68934e328140e5f1d147225e0de26e1822dee3 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Mon, 15 Nov 2021 22:59:34 +0000 Subject: [PATCH] Swap PLATFORM_* macros for standard ones in ecc This simplifies the standalone CMakeLists.txt file arriving in the next commit. _WIN32 is defined by MVSC and the MinGW toolchain for all relevant Windows versions. We don't need to explicitly check for UNIX because it's the only non-Windows case we care about. --- Sources/Ecc/Main.h | 2 +- Sources/Ecc/StdH.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Sources/Ecc/Main.h b/Sources/Ecc/Main.h index 143bf05..5a7d34f 100644 --- a/Sources/Ecc/Main.h +++ b/Sources/Ecc/Main.h @@ -15,7 +15,7 @@ with this program; if not, write to the Free Software Foundation, Inc., /* rcg10042001 */ -#ifdef PLATFORM_WIN32 +#ifdef _WIN32 #define alloca _alloca #endif diff --git a/Sources/Ecc/StdH.h b/Sources/Ecc/StdH.h index ea0cdca..606c882 100644 --- a/Sources/Ecc/StdH.h +++ b/Sources/Ecc/StdH.h @@ -21,11 +21,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include -#ifdef PLATFORM_WIN32 +#ifdef _WIN32 #include -#endif - -#ifdef PLATFORM_UNIX +#else #include #include #include