# HG changeset patch # User etisserant # Date 1183040981 -7200 # Node ID 4fd03ee0c30e555d62d469fb5a02ec2c11e1c8a4 # Parent aa5ac69398bb62453c19722dc2b52561578a7865 Changed types declaration for unix using sys/types.h diff -r aa5ac69398bb -r 4fd03ee0c30e include/unix/applicfg.h --- a/include/unix/applicfg.h Thu Jun 28 15:36:24 2007 +0200 +++ b/include/unix/applicfg.h Thu Jun 28 16:29:41 2007 +0200 @@ -25,6 +25,7 @@ #include #include +#include /* Define the architecture : little_endian or big_endian ----------------------------------------------------- @@ -46,24 +47,24 @@ */ /* Integers */ -#define INTEGER8 char -#define INTEGER16 short -#define INTEGER24 long -#define INTEGER32 long -#define INTEGER40 long long -#define INTEGER48 long long -#define INTEGER56 long long -#define INTEGER64 long long +#define INTEGER8 int8_t +#define INTEGER16 int16_t +#define INTEGER24 int32_t +#define INTEGER32 int32_t +#define INTEGER40 int64_t +#define INTEGER48 int64_t +#define INTEGER56 int64_t +#define INTEGER64 int64_t /* Unsigned integers */ -#define UNS8 unsigned char -#define UNS16 unsigned short -#define UNS32 unsigned long -#define UNS24 unsigned long -#define UNS40 unsigned long long -#define UNS48 unsigned long long -#define UNS56 unsigned long long -#define UNS64 unsigned long long +#define UNS8 u_int8_t +#define UNS16 u_int16_t +#define UNS32 u_int32_t +#define UNS24 u_int32_t +#define UNS40 u_int64_t +#define UNS48 u_int64_t +#define UNS56 u_int64_t +#define UNS64 u_int64_t /* Reals */ #define REAL32 float