parent
11cfb3ce22
commit
92ff302a14
4 changed files with 3 additions and 27 deletions
@ -1,7 +0,0 @@ |
|||||||
project('numbers', 'c') |
|
||||||
|
|
||||||
if host.pointer_size() == 64 |
|
||||||
add_global_arguments('-DIS64', language : 'c') |
|
||||||
endif |
|
||||||
|
|
||||||
test('sizetest', executable('prog', 'prog.c')) |
|
@ -1,10 +0,0 @@ |
|||||||
int main(int argc, char **argv) { |
|
||||||
int ptrsize = sizeof(void*); |
|
||||||
int expsize; |
|
||||||
#ifdef IS64 |
|
||||||
expsize = 8; |
|
||||||
#else |
|
||||||
expsize = 4; |
|
||||||
#endif |
|
||||||
return ptrsize == expsize ? 0 : 1; |
|
||||||
} |
|
Loading…
Reference in new issue