Skip to content

Commit

Permalink
Add APPKIT_EXPORT_CLASS, APPKIT_EXPORT annotations (#288)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
qmfrederik authored Sep 12, 2024
1 parent 3c160c9 commit 6a3681a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Headers/Additions/GNUstepGUI/GSHbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
</unit>
*/
APPKIT_EXPORT_CLASS
@interface GSHbox: GSTable
{
BOOL _haveViews;
Expand Down
2 changes: 1 addition & 1 deletion Headers/Additions/GNUstepGUI/GSPrintOperation.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
@class NSView;
@class NSPrintInfo;


APPKIT_EXPORT_CLASS
@interface GSPrintOperation: NSPrintOperation
{
}
Expand Down
1 change: 1 addition & 0 deletions Headers/Additions/GNUstepGUI/GSTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
</section>
</unit>
*/
APPKIT_EXPORT_CLASS
@interface GSTable: NSView
{
int _numberOfRows;
Expand Down
3 changes: 2 additions & 1 deletion Source/GSGuiPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#import <Foundation/NSBundle.h>
#import <Foundation/NSCoder.h>
#import "AppKit/AppKitDefines.h"
#include "GNUstepBase/GSConfig.h"
#include <math.h>

Expand All @@ -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.
Expand Down

0 comments on commit 6a3681a

Please sign in to comment.