summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn')
-rw-r--r--src/lib/libcrypto/bn/asm/x86_64-gcc.c4
-rw-r--r--src/lib/libcrypto/bn/bn_exp.c7
2 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bn/asm/x86_64-gcc.c b/src/lib/libcrypto/bn/asm/x86_64-gcc.c
index acb0b40118..6a7fa4aea9 100644
--- a/src/lib/libcrypto/bn/asm/x86_64-gcc.c
+++ b/src/lib/libcrypto/bn/asm/x86_64-gcc.c
@@ -55,11 +55,7 @@
55 * machine. 55 * machine.
56 */ 56 */
57 57
58#ifdef _WIN64
59#define BN_ULONG unsigned long long
60#else
61#define BN_ULONG unsigned long 58#define BN_ULONG unsigned long
62#endif
63 59
64#undef mul 60#undef mul
65#undef mul_add 61#undef mul_add
diff --git a/src/lib/libcrypto/bn/bn_exp.c b/src/lib/libcrypto/bn/bn_exp.c
index 2047e1cc3f..22ef643c02 100644
--- a/src/lib/libcrypto/bn/bn_exp.c
+++ b/src/lib/libcrypto/bn/bn_exp.c
@@ -114,12 +114,7 @@
114#include "bn_lcl.h" 114#include "bn_lcl.h"
115 115
116#include <stdlib.h> 116#include <stdlib.h>
117#ifdef _WIN32 117#if defined(__GNUC__)
118# include <malloc.h>
119# ifndef alloca
120# define alloca _alloca
121# endif
122#elif defined(__GNUC__)
123# ifndef alloca 118# ifndef alloca
124# define alloca(s) __builtin_alloca((s)) 119# define alloca(s) __builtin_alloca((s))
125# endif 120# endif