Erik Schmauss | 9585763 | 2018-03-14 16:13:07 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ |
Lv Zheng | 34f3a91b | 2016-08-04 16:45:47 +0800 | [diff] [blame] | 2 | /****************************************************************************** |
| 3 | * |
| 4 | * Name: acgccex.h - Extra GCC specific defines, etc. |
| 5 | * |
Bob Moore | 840c02c | 2019-01-14 09:55:25 -0800 | [diff] [blame] | 6 | * Copyright (C) 2000 - 2019, Intel Corp. |
Lv Zheng | 34f3a91b | 2016-08-04 16:45:47 +0800 | [diff] [blame] | 7 | * |
Erik Schmauss | 9585763 | 2018-03-14 16:13:07 -0700 | [diff] [blame] | 8 | *****************************************************************************/ |
Lv Zheng | 34f3a91b | 2016-08-04 16:45:47 +0800 | [diff] [blame] | 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__ */ |