mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 17:59:27 +02:00
* added csize_t and pcsize_t for non unix systems (in unix/ctypes.pp)
* added csize_t = UnixTypes.size_t in ctypes.pp for unix systems. * reason: size_t is a C type and it's often used by C header files. Several packages define their own size_t. git-svn-id: trunk@12602 -
This commit is contained in:
parent
ee3ac64afb
commit
38bf32dddf
@ -72,14 +72,13 @@ type
|
||||
culong = cardinal; pculong = ^culong;
|
||||
{$endif}
|
||||
|
||||
csize_t = ptruint; pcsize_t = pptruint;
|
||||
|
||||
// Kylix compat types
|
||||
u_long = culong;
|
||||
u_short = cushort;
|
||||
|
||||
|
||||
coff_t = clong;
|
||||
|
||||
|
||||
{$ifndef FPUNONE}
|
||||
cfloat = single; pcfloat = ^cfloat;
|
||||
cdouble = double; pcdouble = ^cdouble;
|
||||
|
@ -54,5 +54,7 @@ type
|
||||
// clongdouble = UnixType.clongdouble; pclongdouble = UnixType.pclongdouble;
|
||||
{$endif}
|
||||
|
||||
csize_t = UnixType.size_t; pcsize_t = UnixType.psize_t;
|
||||
|
||||
coff_t = UnixType.TOff;
|
||||
|
||||
|
@ -65,3 +65,5 @@ type
|
||||
clongdouble = extended; pclongdouble = ^clongdouble;
|
||||
{$endif}
|
||||
|
||||
// csize_t is defined in the operatingsystem dependant ptypes.inc
|
||||
// csize_t = ptruint; pcsize_t = pptruint;
|
||||
|
Loading…
Reference in New Issue
Block a user