Lely core libraries 2.3.4
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#if _WIN32
31#include <windows.h>
32#elif defined(_POSIX_C_SOURCE)
33#include <unistd.h>
34#endif
35
36#ifndef ALIGNED_ALLOC_BITS
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
50#define ALIGNED_ALLOC_SIZE ((size_t)(1 << (ALIGNED_ALLOC_BITS)))
51#endif
52
53#ifdef __cplusplus
54// clang-format off
55namespace lely {
57namespace util {}
58} // namespace lely
59// clang-format on
60#endif
61
62#endif // !LELY_UTIL_INTERN_UTIL_H_
This header file is part of the utilities library; it contains the configuration functions.
This is the public header file of the utilities library.
This header file is part of the C11 and POSIX compatibility library; it includes <unistd....