]> git.pld-linux.org Git - packages/dahdi-linux.git/blob - nostdinc.patch
Release 9 (by relup.sh)
[packages/dahdi-linux.git] / nostdinc.patch
1 --- /dev/null   2022-01-08 18:09:02.763467091 +0100
2 +++ dahdi-linux-3.1.0/drivers/dahdi/stdbool.h   2022-01-15 11:34:39.985002741 +0100
3 @@ -0,0 +1,52 @@
4 +/* Copyright (C) 1998-2021 Free Software Foundation, Inc.
5 +
6 +This file is part of GCC.
7 +
8 +GCC is free software; you can redistribute it and/or modify
9 +it under the terms of the GNU General Public License as published by
10 +the Free Software Foundation; either version 3, or (at your option)
11 +any later version.
12 +
13 +GCC is distributed in the hope that it will be useful,
14 +but WITHOUT ANY WARRANTY; without even the implied warranty of
15 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 +GNU General Public License for more details.
17 +
18 +Under Section 7 of GPL version 3, you are granted additional
19 +permissions described in the GCC Runtime Library Exception, version
20 +3.1, as published by the Free Software Foundation.
21 +
22 +You should have received a copy of the GNU General Public License and
23 +a copy of the GCC Runtime Library Exception along with this program;
24 +see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
25 +<http://www.gnu.org/licenses/>.  */
26 +
27 +/*
28 + * ISO C Standard:  7.16  Boolean type and values  <stdbool.h>
29 + */
30 +
31 +#ifndef _STDBOOL_H
32 +#define _STDBOOL_H
33 +
34 +#ifndef __cplusplus
35 +
36 +#define bool   _Bool
37 +#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
38 +#define true   ((_Bool)+1u)
39 +#define false  ((_Bool)+0u)
40 +#else
41 +#define true   1
42 +#define false  0
43 +#endif
44 +
45 +#else /* __cplusplus */
46 +
47 +/* Supporting _Bool in C++ is a GCC extension.  */
48 +#define _Bool  bool
49 +
50 +#endif /* __cplusplus */
51 +
52 +/* Signal that all the definitions are present.  */
53 +#define __bool_true_false_are_defined  1
54 +
55 +#endif /* stdbool.h */
This page took 0.07234 seconds and 3 git commands to generate.