bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: two bugs while building back on mingw


From: Fred Kiefer
Subject: Re: two bugs while building back on mingw
Date: Sat, 13 Apr 2002 01:34:10 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:0.9.4) Gecko/20011019 Netscape6/6.2

Nicola Pero wrote

Can I ask one question then - is 'BUILD_libgnustep_gui_DLL' and
'libgnustep_gui_DLL' a general standard for building unix stuff on
Windows, or is it more or less a gnustep-only trick ?

Because if it's a gnustep-only trick, we could modify it in the following
way:


#if GNUSTEP_WITH_DLL

#if BUILD_libgnustep_gui_DLL
#  define APPKIT_EXPORT  __declspec(dllexport)
#  define APPKIT_DECLARE __declspec(dllexport)
#else
#  define APPKIT_EXPORT  extern __declspec(dllimport)
#  define APPKIT_DECLARE __declspec(dllimport)
#endif

#else # GNUSTEP_WITH[OUT]_DLL

#  define APPKIT_EXPORT extern
#  define APPKIT_DECLARE

#endif

Although this is a generally used trick, this should be the right way to resolve it, as we cannot be sure if the libraries we are including use it exactly the same way. So we should only try to control what we can control and that is the compilation of our own libraries. And yes this trick should do it.

Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]