src/cx/common.h

changeset 1018
c773da859bad
parent 1016
fe177d6dabb8
child 1034
424b5b74a68f
equal deleted inserted replaced
1017:b0098854071f 1018:c773da859bad
97 #include <stdbool.h> 97 #include <stdbool.h>
98 #include <stdint.h> 98 #include <stdint.h>
99 #include <sys/types.h> 99 #include <sys/types.h>
100 100
101 // --------------------------------------------------------------------------- 101 // ---------------------------------------------------------------------------
102 // Architecture Detection
103 // ---------------------------------------------------------------------------
104
105 #if INTPTR_MAX == INT64_MAX
106 #define CX_WORDSIZE 64
107 #elif INTPTR_MAX == INT32_MAX
108 #define CX_WORDSIZE 32
109 #else
110 #error Unknown pointer size or missing size macros!
111 #endif
112
113 // ---------------------------------------------------------------------------
102 // Attribute definitions 114 // Attribute definitions
103 // --------------------------------------------------------------------------- 115 // ---------------------------------------------------------------------------
104 116
105 #ifndef __GNUC__ 117 #ifndef __GNUC__
106 /** 118 /**

mercurial