diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2024-11-09 22:18:20 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2024-11-09 22:18:20 +0100 |
| commit | 7bf34513767bfd63a19fd7c420e8d825e50bf232 (patch) | |
| tree | 8d9795f596676ac58997528112c7d14d765984a7 | |
| parent | 77bf3f344e58da9484685ef3550e0909a3666d78 (diff) | |
| download | tuxcmd-7bf34513767bfd63a19fd7c420e8d825e50bf232.tar.xz | |
Fix ssize_t data type size
| -rw-r--r-- | UEngines.pas | 3 | ||||
| -rw-r--r-- | ULibc.pas | 12 |
2 files changed, 12 insertions, 3 deletions
diff --git a/UEngines.pas b/UEngines.pas index 8649a05..7a0ccad 100644 --- a/UEngines.pas +++ b/UEngines.pas @@ -556,7 +556,8 @@ end; function TLocalTreeEngine.CopyFileOut(const SourceFile, DestFile: string; Append: boolean; ProgressFunc: TEngineProgressFunc; Sender: Pointer; Error: PPGError): boolean; var fsrc, fdest: Longint; Buffer: Pointer; - BytesDone, BytesRead, BytesWritten, BytesRemaining: ssize_t; + BytesDone: Int64; + BytesRead, BytesWritten, BytesRemaining: ssize_t; begin Result := False; BytesDone := 0; @@ -51,9 +51,17 @@ type {$ENDIF} +{$IFDEF CPU64} + size_t = QWORD; + ssize_t = Int64; + clock_t = QWORD; +{$ELSE} + size_t = Cardinal; + ssize_t = LongInt; + clock_t = Cardinal; +{$ENDIF} + sig_atomic_t = Longint; - size_t = Cardinal; - ssize_t = Longint; error_t = Integer; __mode_t = DWORD; __dev_t = QWORD; |
