Commit | Line | Data |
---|---|---|
95857638 | 1 | /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ |
34f3a91b LZ |
2 | /****************************************************************************** |
3 | * | |
4 | * Name: acgccex.h - Extra GCC specific defines, etc. | |
5 | * | |
487ea80a | 6 | * Copyright (C) 2000 - 2022, Intel Corp. |
34f3a91b | 7 | * |
95857638 | 8 | *****************************************************************************/ |
34f3a91b LZ |
9 | |
10 | #ifndef __ACGCCEX_H__ | |
11 | #define __ACGCCEX_H__ | |
12 | ||
13 | /* | |
14 | * Some versions of gcc implement strchr() with a buggy macro. So, | |
15 | * undef it here. Prevents error messages of this form (usually from the | |
16 | * file getopt.c): | |
17 | * | |
18 | * error: logical '&&' with non-zero constant will always evaluate as true | |
19 | */ | |
20 | #ifdef strchr | |
21 | #undef strchr | |
22 | #endif | |
23 | ||
24 | #endif /* __ACGCCEX_H__ */ |