[BACK]Return to patch-newlib_libc_include_limits.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / cross / xtensa-lx106-elf-gcc / patches

File: [cvs.NetBSD.org] / pkgsrc / cross / xtensa-lx106-elf-gcc / patches / patch-newlib_libc_include_limits.h (download)

Revision 1.1, Fri Sep 20 15:20:20 2019 UTC (4 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, HEAD

Add xtensa-lx106-elf-gcc version 4.8.2. Build options taken
from https://github.com/earlephilhower/esp-quick-toolchain.
This is a version compatible with the Arduino environement.

Cross GCC for for chips using the Xtensa lx106 core, such as the
Espressif ESP8266 wireless modules.

$NetBSD: patch-newlib_libc_include_limits.h,v 1.1 2019/09/20 15:20:20 bouyer Exp $
Don't try to use gcc's limits.h, we're not installing it.

--- newlib/libc/include/limits.h.orig	2019-09-20 12:42:00.178019535 +0200
+++ newlib/libc/include/limits.h	2019-09-20 12:42:51.347562979 +0200
@@ -16,7 +16,7 @@
 
 /* if do not have #include_next support, then we
    have to define the limits here. */
-# if !defined __GNUC__ || __GNUC__ < 2
+# if !defined __GNUC__ || __GNUC__ < 2 || 1
 
 #  ifndef _LIMITS_H
 #   define _LIMITS_H	1
@@ -126,7 +126,7 @@
 
 #endif	 /* !_LIBC_LIMITS_H_ */
 
-#if defined __GNUC__ && !defined _GCC_LIMITS_H_
+#if defined __GNUC__ && !defined _GCC_LIMITS_H_ && 0
 /* `_GCC_LIMITS_H_' is what GCC's file defines.  */
 # include_next <limits.h>
 #endif /* __GNUC__ && !_GCC_LIMITS_H_ */