Add APPKIT_EXPORT_CLASS, APPKIT_EXPORT annotations (#288)

Some GS* classes and methods are used by the ColorPicker or Printing bundles.  That means that they are referenced from an external module.  For this module to be able to resolve these symbols, on Windows, they need to be exported.

This commit adds `APPKIT_EXPORT_CLASS` and `APPKIT_EXPORT` annotations, allowing ColorPickers to compile on Windows.
This commit is contained in:
Frederik Carlier 2024-09-12 22:45:55 +02:00 committed by GitHub
parent 3c160c9bb8
commit 6a3681aa82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 2 deletions

View file

@ -169,6 +169,7 @@
</unit>
*/
APPKIT_EXPORT_CLASS
@interface GSHbox: GSTable
{
BOOL _haveViews;

View file

@ -44,7 +44,7 @@
@class NSView;
@class NSPrintInfo;
APPKIT_EXPORT_CLASS
@interface GSPrintOperation: NSPrintOperation
{
}

View file

@ -171,6 +171,7 @@
</section>
</unit>
*/
APPKIT_EXPORT_CLASS
@interface GSTable: NSView
{
int _numberOfRows;

View file

@ -32,6 +32,7 @@
#import <Foundation/NSBundle.h>
#import <Foundation/NSCoder.h>
#import "AppKit/AppKitDefines.h"
#include "GNUstepBase/GSConfig.h"
#include <math.h>
@ -40,7 +41,7 @@
* Should be only used inside the gnustep-gui library. Implemented
* in Source/NSApplication.m
*/
NSBundle *GSGuiBundle (void);
APPKIT_EXPORT NSBundle *GSGuiBundle (void);
/*
* Localize a message of the gnustep-gui library.