hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2014, STMicroelectronics International N.V.
 */
#ifndef SYS_CDEFS_H
#define SYS_CDEFS_H
 
#if defined(__cplusplus)
#define    __BEGIN_DECLS    extern "C" {
#define    __END_DECLS    }
#else
#define    __BEGIN_DECLS
#define    __END_DECLS
#endif
 
/*
 * GCC 2.95 provides `__restrict' as an extension to C90 to support the
 * C99-specific `restrict' type qualifier.  We happen to use `__restrict' as
 * a way to define the `restrict' type qualifier without disturbing older
 * software that is unaware of C99 keywords.
 */
#if !(__GNUC__ == 2 && __GNUC_MINOR__ == 95)
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901 || defined(lint)
#define __restrict
#else
#define __restrict      restrict
#endif
#endif
 
/* for bsearch.c */
#define __UNCONST(a)    ((void *)(unsigned long)(const void *)(a))
 
#define __always_inline    __attribute__((always_inline)) inline
 
#endif /*SYS_CDEFS_H*/