- There's no more need for the snprintf macro.
authorRichard Levitte <levitte@openssl.org>
Mon, 13 Sep 2004 09:15:06 +0000 (09:15 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 13 Sep 2004 09:15:06 +0000 (09:15 +0000)
- Move the inclusion of malloc.h until after all other includes, so we
  can do proper tests of system macros.
- Make sure the correct header file is included to get the builtin
  "alloca" under VMS, and define a macro to map the symbol 'alloca' to
  it.

crypto/engine/eng_padlock.c

index 5067bc02dd5f13c212f9ee19753043fa49ff1cac..e010ed259efa0b0bc1bb1a46ccecaf15053e0dc6 100644 (file)
 
 #include <stdio.h>
 #include <string.h>
-#include <malloc.h>
-#ifdef _MSC_VER
-# define alloca   _alloca
-# define snprintf _snprintf
-#endif
 
 #include <openssl/crypto.h>
 #include <openssl/dso.h>
 #include <openssl/evp.h>
 #include <openssl/aes.h>
 
+#ifdef OPENSSL_SYS_VMS
+# include <builtins.h>
+# define alloca __ALLOCA
+#else
+# include <malloc.h>
+# ifdef _MSC_VER
+#  define alloca _alloca
+# endif
+#endif
+
 #ifndef OPENSSL_NO_HW
 #ifndef OPENSSL_NO_HW_PADLOCK