1 /* 2 * Copyright (c) 2016 Wind River Systems, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * @brief _MLIBC_RESTRICT definition 10 * 11 * The macro "_MLIBC_RESTRICT" is intended to be private to the minimal libc 12 * library. It evaluates to the "restrict" keyword when a C99 compiler is 13 * used, and to "__restrict__" when a C++ compiler is used. 14 */ 15 16 #if !defined(_MLIBC_RESTRICT_defined) 17 #define _MLIBC_RESTRICT_defined 18 19 #ifdef __cplusplus 20 #define _MLIBC_RESTRICT __restrict__ 21 #else 22 #define _MLIBC_RESTRICT restrict 23 #endif 24 25 #endif 26