src/cx/common.h

changeset 1026
ca20f9ffcb62
parent 1018
c773da859bad
child 1034
424b5b74a68f
equal deleted inserted replaced
1025:439407fc29e1 1026:ca20f9ffcb62
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