From 6c1640e44d1bce3e8400ffb29e7c60e06f836108 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 1 Mar 2005 04:57:45 +0000 Subject: [PATCH] Updates for the new building code on MinGW git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/libobjc/trunk@20818 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog.GNUstep | 5 +++++ objc/objc-decls.h | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog.GNUstep b/ChangeLog.GNUstep index a53b296..94f136d 100644 --- a/ChangeLog.GNUstep +++ b/ChangeLog.GNUstep @@ -1,3 +1,8 @@ +2005-03-01 Nicola Pero + + * objc/objc-decls.h: On MinGW, do not use + dllexport. + 2004-02-17 Adam Fedor * GNUmakefile: Add defs for darwin. diff --git a/objc/objc-decls.h b/objc/objc-decls.h index 63b7740..4fd5178 100644 --- a/objc/objc-decls.h +++ b/objc/objc-decls.h @@ -6,8 +6,17 @@ #ifdef GNUSTEP_WITH_DLL #if BUILD_libobjc_DLL +# +# if defined(__MINGW32__) + /* On Mingw, the compiler will export all symbols automatically, so + * __declspec(dllexport) is not needed. + */ +# define objc_EXPORT extern +# define objc_DECLARE +# else # define objc_EXPORT __declspec(dllexport) # define objc_DECLARE __declspec(dllexport) +# endif #else # define objc_EXPORT extern __declspec(dllimport) # define objc_DECLARE extern __declspec(dllimport)