With the new <zephyr/> include prefix, the "types" header ended up being located in <zephyr/zephyr/types.h>, ie weird. Code that hasn't migrated to <zephyr/zephyr/types.h> (no occurences in tree) will be automatically prepared for the removal of the legacy include path. Most applications will not be impacted as both include and include/zephyr are now in the include path, and they'll be already prepared for the future. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
40 lines
866 B
C
40 lines
866 B
C
/*
|
|
* Copyright (c) 2017 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_INCLUDE_ZEPHYR_TYPES_H_
|
|
#define ZEPHYR_INCLUDE_ZEPHYR_TYPES_H_
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* 32 bits on ILP32 builds, 64 bits on LP64 builds */
|
|
typedef unsigned long ulong_t;
|
|
|
|
/*
|
|
* A type with strong alignment requirements, similar to C11 max_align_t. It can
|
|
* be used to force alignment of data structures allocated on the stack or as
|
|
* return * type for heap allocators.
|
|
*/
|
|
typedef union {
|
|
long long thelonglong;
|
|
long double thelongdouble;
|
|
uintmax_t theuintmax_t;
|
|
size_t thesize_t;
|
|
uintptr_t theuintptr_t;
|
|
void *thepvoid;
|
|
void (*thepfunc)(void);
|
|
} z_max_align_t;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_INCLUDE_ZEPHYR_TYPES_H_ */
|