* 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:
ivost 2009-01-26 12:58:20 +00:00
parent ee3ac64afb
commit 38bf32dddf
3 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;