acgccex.h 676 B

12345678910111213141516171819202122232425
  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 - 2018, Intel Corp.
  7. *
  8. *****************************************************************************/
  9. #ifndef __ACGCCEX_H__
  10. #define __ACGCCEX_H__
  11. /*
  12. * Some versions of gcc implement strchr() with a buggy macro. So,
  13. * undef it here. Prevents error messages of this form (usually from the
  14. * file getopt.c):
  15. *
  16. * error: logical '&&' with non-zero constant will always evaluate as true
  17. */
  18. #ifdef strchr
  19. #undef strchr
  20. #endif
  21. #endif /* __ACGCCEX_H__ */