Browse Source

'size_t' system type is also 64-bit wide on OpenBSD for x86_64 CPU.
This change reduces testsuite failure count from 49 downto 30.

git-svn-id: trunk@30332 -

pierre 10 years ago
parent
commit
c4d3286d69
1 changed files with 4 additions and 1 deletions
  1. 4 1
      rtl/openbsd/ptypes.inc

+ 4 - 1
rtl/openbsd/ptypes.inc

@@ -52,8 +52,11 @@ type
     pid_t    = cint32;          { used as process identifier   }
     TPid     = pid_t;
     pPid     = ^pid_t;
-
+{$ifdef CPU64}
+    size_t   = cuint64;
+{$else}
     size_t   = cuint32;         { as definied in the C standard}
+{$endif}
     TSize    = size_t;
     pSize    = ^size_t;
     pSize_t  = ^size_t;