MSYS2-packages/mingw-w64-cross-mingwarm64-gcc/0010-Cygwin-newlib-ftm.patch
Christoph Reiter 6af3c1f9d9 Add a mingwarm64 gcc cross compiler
bootstrapped via:

* build stage1 from here: https://github.com/Windows-on-ARM-Experiments/MSYS2-packages/tree/woarm64/mingw-w64-cross-mingwarm64-gcc-stage1
* build winpthreads without shared libs
* build crt
* rebuild winpthreads with shared libs
* build all the rest + gcc + rebuild everything again without stage1
2024-09-08 14:32:54 +02:00

26 lines
888 B
Diff

From 7b152583446b4c4762f0af4c51a8f73d7d6e2d6a Mon Sep 17 00:00:00 2001
From: Jonathan Yong <10walls@gmail.com>
Date: Tue, 8 Sep 2020 15:24:34 +0200
Subject: [PATCH 10/13] Cygwin: newlib ftm
---
gcc/glimits.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/glimits.h b/gcc/glimits.h
index 3cd7cf64e63..3905d7bedd2 100644
--- a/gcc/glimits.h
+++ b/gcc/glimits.h
@@ -111,7 +111,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
#endif
-#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : !defined (__STRICT_ANSI__)
+#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : defined (__NEWLIB__) ? __GNU_VISIBLE : !defined (__STRICT_ANSI__)
/* Minimum and maximum values a `signed long long int' can hold. */
# undef LONG_LONG_MIN
# define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
--
2.39.0