diff options
Diffstat (limited to 'src/crypto/perlasm/x86asm.pl')
-rw-r--r-- | src/crypto/perlasm/x86asm.pl | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/crypto/perlasm/x86asm.pl b/src/crypto/perlasm/x86asm.pl index c9f645e0..3d2943bc 100644 --- a/src/crypto/perlasm/x86asm.pl +++ b/src/crypto/perlasm/x86asm.pl @@ -262,7 +262,20 @@ $comment This file is generated from a similarly-named Perl script in the Boring $comment source tree. Do not edit by hand. ___ - print "#if defined(__i386__)\n" unless ($win32 || $netware); + if ($win32 || $netware) { + print <<___ unless $masm; +%ifdef BORINGSSL_PREFIX +%include "boringssl_prefix_symbols_nasm.inc" +%endif +___ + } else { + print <<___; +#if defined(__i386__) +#if defined(BORINGSSL_PREFIX) +#include <boringssl_prefix_symbols_asm.h> +#endif +___ + } print @out; print "#endif\n" unless ($win32 || $netware); } @@ -288,7 +301,7 @@ sub ::asm_init #elsif (($type eq "nw-mwasm")) #{ $netware=1; $mwerks=1; require "x86nasm.pl"; } elsif (($type eq "win32")) - { $win32=1; require "x86masm.pl"; } + { $win32=1; $masm=1; require "x86masm.pl"; } elsif (($type eq "macosx")) { $aout=1; $macosx=1; require "x86gas.pl"; } elsif (($type eq "android")) |