23 #ifndef __APPLICFG_LINUX__ |
23 #ifndef __APPLICFG_LINUX__ |
24 #define __APPLICFG_LINUX__ |
24 #define __APPLICFG_LINUX__ |
25 |
25 |
26 #include <string.h> |
26 #include <string.h> |
27 #include <stdio.h> |
27 #include <stdio.h> |
|
28 #include <sys/types.h> |
28 |
29 |
29 /* Define the architecture : little_endian or big_endian |
30 /* Define the architecture : little_endian or big_endian |
30 ----------------------------------------------------- |
31 ----------------------------------------------------- |
31 Test : |
32 Test : |
32 UNS32 v = 0x1234ABCD; |
33 UNS32 v = 0x1234ABCD; |
44 data[2] = 0xAB; |
45 data[2] = 0xAB; |
45 data[3] = 0xCD; |
46 data[3] = 0xCD; |
46 */ |
47 */ |
47 |
48 |
48 /* Integers */ |
49 /* Integers */ |
49 #define INTEGER8 char |
50 #define INTEGER8 int8_t |
50 #define INTEGER16 short |
51 #define INTEGER16 int16_t |
51 #define INTEGER24 long |
52 #define INTEGER24 int32_t |
52 #define INTEGER32 long |
53 #define INTEGER32 int32_t |
53 #define INTEGER40 long long |
54 #define INTEGER40 int64_t |
54 #define INTEGER48 long long |
55 #define INTEGER48 int64_t |
55 #define INTEGER56 long long |
56 #define INTEGER56 int64_t |
56 #define INTEGER64 long long |
57 #define INTEGER64 int64_t |
57 |
58 |
58 /* Unsigned integers */ |
59 /* Unsigned integers */ |
59 #define UNS8 unsigned char |
60 #define UNS8 u_int8_t |
60 #define UNS16 unsigned short |
61 #define UNS16 u_int16_t |
61 #define UNS32 unsigned long |
62 #define UNS32 u_int32_t |
62 #define UNS24 unsigned long |
63 #define UNS24 u_int32_t |
63 #define UNS40 unsigned long long |
64 #define UNS40 u_int64_t |
64 #define UNS48 unsigned long long |
65 #define UNS48 u_int64_t |
65 #define UNS56 unsigned long long |
66 #define UNS56 u_int64_t |
66 #define UNS64 unsigned long long |
67 #define UNS64 u_int64_t |
67 |
68 |
68 /* Reals */ |
69 /* Reals */ |
69 #define REAL32 float |
70 #define REAL32 float |
70 #define REAL64 double |
71 #define REAL64 double |
71 |
72 |