From ad37c29898bea8f9fcae80b9771de7022cfb7fb3 Mon Sep 17 00:00:00 2001 From: David Pinedo Date: Thu, 2 Jul 2015 09:04:37 -0600 Subject: loader: Use _alloca instead of alloca on Windows --- loader/loader_platform.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'loader/loader_platform.h') diff --git a/loader/loader_platform.h b/loader/loader_platform.h index a7bd0c64..693a3dcf 100644 --- a/loader/loader_platform.h +++ b/loader/loader_platform.h @@ -198,6 +198,10 @@ using namespace std; // "CMakeLists.txt" file). #define snprintf _snprintf #define PRINTF_SIZE_T_SPECIFIER "%Iu" + +// Microsoft doesn't implement alloca, instead we have _alloca +#define alloca _alloca + // Microsoft also doesn't have basename(). Paths are different on Windows, and // so this is just a temporary solution in order to get us compiling, so that we // can test some scenarios, and develop the correct solution for Windows. -- cgit v1.2.3