As it turns out Xtensa SDK headers also define _Restrict, causing havoc. As this was intended to be a private macro, rename it to something less likely to cause a collision. Change-Id: I0a7501a1af8cf87efb096872a91a7b44bd2bbdca Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
26 lines
550 B
C
26 lines
550 B
C
/*
|
|
* Copyright (c) 2016 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @brief _MLIBC_RESTRICT definition
|
|
*
|
|
* The macro "_MLIBC_RESTRICT" is intended to be private to the minimal libc
|
|
* library. It evaluates to the "restrict" keyword when a C99 compiler is
|
|
* used, and to "__restrict__" when a C++ compiler is used.
|
|
*/
|
|
|
|
#if !defined(_MLIBC_RESTRICT_defined)
|
|
#define _MLIBC_RESTRICT_defined
|
|
|
|
#ifdef __cplusplus
|
|
#define _MLIBC_RESTRICT __restrict__
|
|
#else
|
|
#define _MLIBC_RESTRICT restrict
|
|
#endif
|
|
|
|
#endif
|