Explorar o código

* fix incompatiblity in signess between 64 and 32, make tthreadid=ptruint

git-svn-id: trunk@7496 -
peter %!s(int64=18) %!d(string=hai) anos
pai
achega
9abb852d70
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      rtl/linux/sysosh.inc

+ 2 - 5
rtl/linux/sysosh.inc

@@ -19,12 +19,9 @@
 type
 type
   { fd are int in C also for 64bit targets (x86_64) }
   { fd are int in C also for 64bit targets (x86_64) }
   THandle = Longint;
   THandle = Longint;
+  
   { pthread_t is defined as an "unsigned long" }
   { pthread_t is defined as an "unsigned long" }
-  {$ifdef CPU64}
-  TThreadID = QWord;
-  {$else}
-  TThreadID = THandle;
-  {$endif}
+  TThreadID = PtrUInt;
 
 
   { pthread_mutex_t }
   { pthread_mutex_t }
   PRTLCriticalSection = ^TRTLCriticalSection;
   PRTLCriticalSection = ^TRTLCriticalSection;