[fpc-devel] TRect and TPoint on OsX have different layout.

Florian Klaempfl florian at freepascal.org
Tue Jul 3 21:20:04 CEST 2007


Den Jean schrieb:
> Hi,
> 
> On OsX rect and point have a different layout.
> 
> Is there somewhere in the fpc rtl 
> a rect and point type that conforms to this ?
> 
> Would you consider adapting the definition of Types.TRect ?


Hmm, I wouldn't bet that no lazarus etc. code depends on the layout ...
> 
> This is actually an old request:
> http://lists.freepascal.org/lists/fpc-devel/2006-April/007515.html
> 
> 
> Qt4 header extracts that shows platform dependant layout:
> 
> qrect.h:
> #if defined(Q_OS_MAC)
>     int y1;
>     int x1;
>     int y2;
>     int x2;
> #else
>     int x1;
>     int y1;
>     int x2;
>     int y2;
> #endif
> 
> qpoint.h
> #if defined(Q_OS_MAC)
>     int yp;
>     int xp;
> #else
>     int xp;
>     int yp;
> #endif
> 
> regards,
> 
> Den Jean
>   
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel




More information about the fpc-devel mailing list