1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2014, STMicroelectronics International N.V. 4 */ 5 #ifndef SYS_CDEFS_H 6 #define SYS_CDEFS_H 7 8 /* 9 * GCC 2.95 provides `__restrict' as an extension to C90 to support the 10 * C99-specific `restrict' type qualifier. We happen to use `__restrict' as 11 * a way to define the `restrict' type qualifier without disturbing older 12 * software that is unaware of C99 keywords. 13 */ 14 #if !(__GNUC__ == 2 && __GNUC_MINOR__ == 95) 15 #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901 || defined(lint) 16 #define __restrict 17 #else 18 #define __restrict restrict 19 #endif 20 #endif 21 22 #define __always_inline __attribute__((always_inline)) inline 23 24 #endif /*SYS_CDEFS_H*/ 25