]> www.ginac.de Git - cln.git/blob - include/cln/config.h.cmake
CLN can be built with CMake
[cln.git] / include / cln / config.h.cmake
1 #ifndef CL_CONFIG_PUBLIC_H
2 #define CL_CONFIG_PUBLIC_H
3
4 #include "cln/host_cpu.h"
5 #include "cln/version.h"
6
7 /**
8  * Alignment of a `void*'. CLN needs it to distinguish between pointers
9  * and immediate values.
10  */
11 #define cl_word_alignment @ALIGNOF_VOIDP@
12
13 /* 
14  * Numbers in the heap are stored as "digit" (or "limb" in GMP speak)
15  * sequences. A digit is an unsigned int with sizeof(void *)*CHAR_BIT bits.
16  * It should be 8 or 16 or 32 or 64 bits. If CLN is sitting on top of GMP
17  * it should match mp_limb_t
18  */
19 #cmakedefine GMP_DEMANDS_UINTD_INT
20 #cmakedefine GMP_DEMANDS_UINTD_LONG
21 #cmakedefine GMP_DEMANDS_UINTD_LONG_LONG
22
23 #endif /* CL_CONFIG_PUBLIC_H */
24