1/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2/******************************************************************************
3 *
4 * Name: acgccex.h - Extra GCC specific defines, etc.
5 *
6 * Copyright (C) 2000 - 2023, Intel Corp.
7 *
8 *****************************************************************************/
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__ */
25

source code of linux/include/acpi/platform/acgccex.h