[fpc-devel] intptr_t and Linux

ik idokan at gmail.com
Sun Apr 24 17:05:29 CEST 2011


Hello List,

I see that intptr_t type is defined for all supported Unix that are not
Linux.
Is there are reason why it was never declared for Linux ?

stdint.h is define it like so:
/* Types for `void *' pointers.  */
#if __WORDSIZE == 64
# ifndef __intptr_t_defined
typedef long int    intptr_t;
#  define __intptr_t_defined
# endif
typedef unsigned long int uintptr_t;
#else
# ifndef __intptr_t_defined
typedef int     intptr_t;
#  define __intptr_t_defined
# endif
typedef unsigned int    uintptr_t;
#endif


Thanks,

Ido

LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20110424/147c854e/attachment.html>


More information about the fpc-devel mailing list