Hi,

the c long int type is always mapped to longint in h2pas 

but I guess this is not correct in linux (have no 64 bit to verify)

If I am correct:
linux64: c long int -> pascal int64
win64  : c long int -> pascal longint
What is the size of long on the Mac Os X platform ?

Is there a pascal integer type defined somewhere in rtl
that allows me to map to this c-type sometimes
used in api's ?

Qt4 API sample
 bool myEventFilter(void *message, long *result);

my current definition

  PLong = ^Long;
{$ifdef CPU64 and not WIN64}
   Long = Int64;
{$else}
   Long = LongInt;
{$endif}


kind regards,

Den Jean

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to