From a28e8f45c361a5c7799b59d9d38a5353d1a9bb6a Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Mon, 26 May 2008 08:28:54 +0000 Subject: [PATCH] mingw32.h (STD_MINGW): Set to true for target w64. 2008-05-26 Kai Tietz * mingw32.h (STD_MINGW): Set to true for target w64. From-SVN: r135894 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/mingw32.h | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index c2ffb5eaa63..25e2fe8c4c3 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2008-05-26 Kai Tietz + + * mingw32.h (STD_MINGW): Set to true for target w64. + 2008-05-25 Eric Botcazou * trans.c (Attribute_to_gnu) : Set TREE_NO_TRAMPOLINE diff --git a/gcc/ada/mingw32.h b/gcc/ada/mingw32.h index 8018e14986c..e8d95558d0d 100644 --- a/gcc/ada/mingw32.h +++ b/gcc/ada/mingw32.h @@ -93,10 +93,16 @@ version instead of the previous enhanced version to ease building GNAT on Windows platforms. By using STD_MINGW or OLD_MINGW it is possible to build GNAT using both MingW include files (Old MingW + ACT changes and standard - MingW starting with version 1.3. */ + MingW starting with version 1.3. + For w64 Mingw the define STD_MINGW is always set to value 1, because + there is no old header set present. */ +#ifdef _WIN64 +#define STD_MINGW 1 +#else #define STD_MINGW ((__MINGW32_MAJOR_VERSION == 1 \ && __MINGW32_MINOR_VERSION >= 3) \ || (__MINGW32_MAJOR_VERSION >= 2)) +#endif #define OLD_MINGW (!(STD_MINGW)) -- 2.30.2