Do not try to export/import symbols at all on MinGW - else I can't use the library at least on MinGW 5.1.4

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/libobjc/trunk@27744 72102866-910b-0410-8b05-ffd578937521
main
nicola 17 years ago
parent ac4772568d
commit 47c8722bea

@ -1,9 +1,11 @@
2009-01-31 Nicola Pero <nicola.pero@meta-innovation.com>
* 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.
* objc/objc-decls.h: Reverted last change to get it to compile
again on MinGW32. If we're on Windows, but not MinGW32, 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.
2008-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
* GNUmakefile (GNUSTEP_CORE_SOFTWARE): Do not set.

@ -27,7 +27,10 @@ Boston, MA 02110-1301, USA. */
#ifndef __objc_decls_INCLUDE_GNU
#define __objc_decls_INCLUDE_GNU
#if (defined (_WIN32) || defined (__WIN32__) || defined (WIN32))
#if !defined(__MINGW32__) && (defined (_WIN32) || defined (__WIN32__) || defined (WIN32))
# The following code is not needed on MinGW >= 5.1.3 since the compiler will automatically
# determine which symbols to import/export, at least when compiling using gnustep-make.
#ifdef BUILD_libobjc_DLL /* defined by gnustep-make when compiling libobjc itself */
# define objc_EXPORT __declspec(dllexport)

Loading…
Cancel
Save