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