Lely core libraries  2.2.5
util.h
Go to the documentation of this file.
1 
21 #ifndef LELY_UTIL_INTERN_UTIL_H_
22 #define LELY_UTIL_INTERN_UTIL_H_
23 
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27 
28 #include <lely/util/util.h>
29 
30 #ifdef _WIN32
31 #include <windows.h>
32 #elif defined(_POSIX_C_SOURCE)
33 #include <unistd.h>
34 #endif
35 
36 #ifndef ALIGNED_ALLOC_BITS
37 
41 #if __WORDSIZE == 64
42 #define ALIGNED_ALLOC_BITS 4
43 #else
44 #define ALIGNED_ALLOC_BITS 3
45 #endif
46 #endif
47 
48 #ifndef ALIGNED_ALLOC_SIZE
49 #define ALIGNED_ALLOC_SIZE ((size_t)(1 << (ALIGNED_ALLOC_BITS)))
51 #endif
52 
53 #ifdef __cplusplus
54 namespace lely {
56 namespace util {}
57 } // namespace lely
58 #endif
59 
60 #endif // !LELY_UTIL_INTERN_UTIL_H_
util.h
unistd.h
config.h