From ac4772568dd57da425545cad85d962ab45be6876 Mon Sep 17 00:00:00 2001 From: nicola Date: Sat, 31 Jan 2009 18:27:36 +0000 Subject: [PATCH] Made libobjc compile again on MinGW32 - the last changes broke it as it was now dllimporting its own symbols while building, which doesn't make sense and would abort compilation with GCC 3.4.5 (MinGW 5.1.4) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/libobjc/trunk@27743 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ objc/objc-decls.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2274ed7..5c9f07e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-31 Nicola Pero + + * objc/objc-decls.h: Use BUILD_libobjc_DLL (as defined by + gnustep-make), not DLL_EXPORT (as defined by libtool, which we + don't use), to decide when to export/import symbols on MinGW32. + 2008-12-19 Nicola Pero * GNUmakefile (GNUSTEP_CORE_SOFTWARE): Do not set. diff --git a/objc/objc-decls.h b/objc/objc-decls.h index 8ed0854..ef1ae15 100644 --- a/objc/objc-decls.h +++ b/objc/objc-decls.h @@ -29,7 +29,7 @@ Boston, MA 02110-1301, USA. */ #if (defined (_WIN32) || defined (__WIN32__) || defined (WIN32)) -#ifdef DLL_EXPORT /* defined by libtool (if required) */ +#ifdef BUILD_libobjc_DLL /* defined by gnustep-make when compiling libobjc itself */ # define objc_EXPORT __declspec(dllexport) # define objc_DECLARE __declspec(dllexport) #else