From 94957bca12c4dfd29780efd02cda9024f5eda4fd Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 9 Oct 2003 16:14:49 +0000 Subject: [PATCH] * fix check for generatenasmlib --- compiler/systems/t_win32.pas | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/compiler/systems/t_win32.pas b/compiler/systems/t_win32.pas index 8be1f47dc5..6ec19c82d4 100644 --- a/compiler/systems/t_win32.pas +++ b/compiler/systems/t_win32.pas @@ -245,8 +245,7 @@ const hp2:=twin32imported_item(hp1.imported_items.first); while assigned(hp2) do begin - if (aktoutputformat=as_i386_tasm) or - (aktoutputformat=as_i386_masm) then + if (aktoutputformat in [as_i386_tasm,as_i386_masm]) then p:=strpnew(#9+'EXTRN '+hp2.func^) else p:=strpnew(#9+'EXTERN '+hp2.func^); @@ -260,9 +259,6 @@ const end; - const - MainAsmFormats=[as_i386_pecoff,as_i386_pecoffwdosx]; - procedure timportlibwin32.generatesmartlib; var hp1 : timportlist; @@ -276,7 +272,7 @@ const lidata4,lidata5 : tasmlabel; href : treference; begin - if not(aktoutputformat in MainAsmFormats)then + if (aktoutputformat in [as_i386_masm,as_i386_tasm,as_i386_nasmwin32]) then begin generatenasmlib; exit; @@ -425,7 +421,7 @@ const {$endif GDB} href : treference; begin - if not(aktoutputformat in MainAsmFormats)then + if (aktoutputformat in [as_i386_masm,as_i386_tasm,as_i386_nasmwin32]) then begin generatenasmlib; exit; @@ -654,11 +650,11 @@ const address_table,name_table_pointers, name_table,ordinal_table : TAAsmoutput; begin - if not (aktoutputformat in MainAsmFormats)then - begin - generatenasmlib; - exit; - end; + if (aktoutputformat in [as_i386_masm,as_i386_tasm,as_i386_nasmwin32]) then + begin + generatenasmlib; + exit; + end; hp:=texported_item(current_module._exports.first); if not assigned(hp) then @@ -1626,7 +1622,10 @@ initialization end. { $Log$ - Revision 1.21 2003-10-03 14:16:48 marco + Revision 1.22 2003-10-09 16:14:49 peter + * fix check for generatenasmlib + + Revision 1.21 2003/10/03 14:16:48 marco * -XP support Revision 1.20 2003/10/02 21:17:08 peter