[fpc-devel] TRect and TPoint on OsX have different layout.
Den Jean
Den.Jean at telenet.be
Tue Jul 3 21:18:10 CEST 2007
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 ?
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
More information about the fpc-devel
mailing list