From eec308a99dfb54a891faf077bfd9f6964a2d2cd9 Mon Sep 17 00:00:00 2001 From: rfm Date: Fri, 19 Mar 2010 12:26:42 +0000 Subject: [PATCH] tweaks for mingw defines git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30003 72102866-910b-0410-8b05-ffd578937521 --- Source/GSNetwork.h | 2 +- Source/ObjectiveC2/blocks_runtime.m | 2 +- Tools/gdomap.c | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/GSNetwork.h b/Source/GSNetwork.h index a6abcc159..15c18830d 100644 --- a/Source/GSNetwork.h +++ b/Source/GSNetwork.h @@ -38,7 +38,7 @@ #include #include -#if defined(__MINGW__) +#if defined(__MINGW32__) || defined(__MINGW64__) #include #include diff --git a/Source/ObjectiveC2/blocks_runtime.m b/Source/ObjectiveC2/blocks_runtime.m index 55cf15394..d152ff4a8 100644 --- a/Source/ObjectiveC2/blocks_runtime.m +++ b/Source/ObjectiveC2/blocks_runtime.m @@ -200,7 +200,7 @@ struct StackBlockClass { const char *types; }; -#if defined(__MINGW__) +#if defined(__MINGW32__) || defined(__MINGW64__) /* FIXME ... evil hack ... declare symbol to avoid linker error on windows * where the compiler/linker doesn't support a weak reference. * This obviously breaks the code below... diff --git a/Tools/gdomap.c b/Tools/gdomap.c index 38ca87b98..e5341b924 100644 --- a/Tools/gdomap.c +++ b/Tools/gdomap.c @@ -26,6 +26,12 @@ #include "config.h" +#if !defined(__MINGW__) +# if defined(__MINGW32__) || defined(__MINGW64__) +# define __MINGW__ +# endif +#endif + #include #include #include