Rename the Kconfig symbol from LEGACY_ZEPHYR_INT_TYPES to DEPRECATED_ZEPHYR_INT_TYPES. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
38 lines
723 B
C
38 lines
723 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 <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef CONFIG_DEPRECATED_ZEPHYR_INT_TYPES
|
|
|
|
typedef signed char s8_t;
|
|
typedef signed short s16_t;
|
|
typedef signed int s32_t;
|
|
typedef signed long long s64_t;
|
|
|
|
typedef unsigned char u8_t;
|
|
typedef unsigned short u16_t;
|
|
typedef unsigned int u32_t;
|
|
typedef unsigned long long u64_t;
|
|
|
|
#endif
|
|
|
|
/* 32 bits on ILP32 builds, 64 bits on LP64 builts */
|
|
typedef unsigned long ulong_t;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_INCLUDE_ZEPHYR_TYPES_H_ */
|