diff --git a/FPCTests/fpcunitproject1.lpi b/FPCTests/fpcunitproject1.lpi index 9b72ff3..59160d0 100644 --- a/FPCTests/fpcunitproject1.lpi +++ b/FPCTests/fpcunitproject1.lpi @@ -14,9 +14,6 @@ - - - diff --git a/FPCTests/fpcunitproject1.lps b/FPCTests/fpcunitproject1.lps index c3f3150..6693349 100644 --- a/FPCTests/fpcunitproject1.lps +++ b/FPCTests/fpcunitproject1.lps @@ -4,42 +4,41 @@ - + - - - + + - - + + - + - - - - + + + + + - + - - + @@ -87,153 +86,147 @@ - + - - + - + + + + + + + - + - + - + - + - + - - + + - + - + - + - - + + - + - + - + - + - - + + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - diff --git a/FPCTests/fpcunitproject1.obj b/FPCTests/fpcunitproject1.obj new file mode 100644 index 0000000..a0861c7 Binary files /dev/null and b/FPCTests/fpcunitproject1.obj differ diff --git a/Source/FasmOnDelphi.pas b/Source/FasmOnDelphi.pas index 27f2a4a..e3839e8 100755 --- a/Source/FasmOnDelphi.pas +++ b/Source/FasmOnDelphi.pas @@ -759,22 +759,7 @@ var {$ENDIF}{$ENDIF} initialization {$IFDEF FPC} -{$IFDEF MSWINDOWS} -begin - SetLength(FasmTemp,MAX_PATH); - Len:=GetTempPath(MAX_PATH,PChar(FasmTemp)); - if Len<>0 then - begin - Len:=GetLongPathNameA(PChar(FasmTemp),nil,0); - GetLongPathNameA(PChar(FasmTemp),PChar(FasmTemp),Len); - SetLength(FasmTemp,Len-1); - end - else - FasmTemp:=''; -end; -{$ELSE} -FasmTemp:='/tmp/'; -{$ENDIF} +GetTempDir; {$ELSE} FasmTemp:=TPath.GetTempPath; {$ENDIF}