MSYS2-packages/mingw-w64-cross-gcc/0010-Cygwin-newlib-ftm.patch
Christoph Reiter 5d0ae9ff04 cross-gcc: Update to 13.2.0
* sync in patches from cygwin gcc
* sync in important patches from mingw gcc not related to the build
* enabling stripping (not sure why it was disabled)
* reduce diff for build options to the mingw gcc build a bit
2023-11-13 19:49:38 +01: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