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.
This commit is contained in:
James Le Cuirot 2021-11-15 22:59:34 +00:00
parent 6087022b9c
commit bd68934e32
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137
2 changed files with 3 additions and 5 deletions

View File

@ -15,7 +15,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
/* rcg10042001 */ /* rcg10042001 */
#ifdef PLATFORM_WIN32 #ifdef _WIN32
#define alloca _alloca #define alloca _alloca
#endif #endif

View File

@ -21,11 +21,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <stdarg.h> #include <stdarg.h>
#include <math.h> #include <math.h>
#ifdef PLATFORM_WIN32 #ifdef _WIN32
#include <malloc.h> #include <malloc.h>
#endif #else
#ifdef PLATFORM_UNIX
#include <errno.h> #include <errno.h>
#include <sys/param.h> #include <sys/param.h>
#include <unistd.h> #include <unistd.h>