Lely core libraries
1.9.2
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
#endif // !LELY_UTIL_INTERN_UTIL_H_
config.h
This header file is part of the utilities library; it contains the configuration functions.
unistd.h
This header file is part of the C11 and POSIX compatibility library; it includes <unistd.h>, if it exists, and defines any missing functionality.
util.h
This is the public header file of the utilities library.
src
util
util.h
Generated by
1.8.14