mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Fix AppKit exports for inclusion in C++ code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35977 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4f88674d9a
commit
270557eee8
1 changed files with 10 additions and 4 deletions
|
@ -27,6 +27,12 @@
|
|||
#define __AppKitDefines_INCLUDE
|
||||
#import <GNUstepBase/GSVersionMacros.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define APPKIT_EXTERN extern "C"
|
||||
#else
|
||||
#define APPKIT_EXTERN extern
|
||||
#endif
|
||||
|
||||
#ifdef GNUSTEP_WITH_DLL
|
||||
|
||||
#if BUILD_libgnustep_gui_DLL
|
||||
|
@ -35,20 +41,20 @@
|
|||
/* On Mingw, the compiler will export all symbols automatically, so
|
||||
* __declspec(dllexport) is not needed.
|
||||
*/
|
||||
# define APPKIT_EXPORT extern
|
||||
# define APPKIT_EXPORT APPKIT_EXTERN
|
||||
# define APPKIT_DECLARE
|
||||
# else
|
||||
# define APPKIT_EXPORT __declspec(dllexport)
|
||||
# define APPKIT_EXPORT __declspec(dllexport) APPKIT_EXTERN
|
||||
# define APPKIT_DECLARE __declspec(dllexport)
|
||||
# endif
|
||||
#else
|
||||
# define APPKIT_EXPORT extern __declspec(dllimport)
|
||||
# define APPKIT_EXPORT APPKIT_EXTERN __declspec(dllimport)
|
||||
# define APPKIT_DECLARE __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
#else /* GNUSTEP_WITH[OUT]_DLL */
|
||||
|
||||
# define APPKIT_EXPORT extern
|
||||
# define APPKIT_EXPORT APPKIT_EXTERN
|
||||
# define APPKIT_DECLARE
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue