Fix mingw warnings.
[openssl.git] / crypto / engine / eng_padlock.c
index e1d66eac58adcba26a55637eca8d343f89acc02d..3fbb51b585ee6f8720ba784cbb0a1a0340f173f1 100644 (file)
@@ -123,9 +123,11 @@ void ENGINE_load_padlock (void)
 #ifdef COMPILE_HW_PADLOCK
 /* We do these includes here to avoid header problems on platforms that
    do not have the VIA padlock anyway... */
-#ifdef _MSC_VER
+#ifdef _WIN32
 # include <malloc.h>
-# define alloca _alloca
+# ifndef alloca
+#  define alloca _alloca
+# endif
 #else
 # include <stdlib.h>
 #endif