Add missing export declarations required by libs-gui on Windows MSVC

This commit is contained in:
Frederik Seiffert 2021-10-13 11:57:09 +02:00 committed by Frederik Seiffert
parent 082e93aa9e
commit 47480d781a
4 changed files with 10 additions and 1 deletions

View file

@ -78,6 +78,7 @@ GS_EXPORT NSString* const GSPublicNotificationCenterType;
GS_EXPORT NSString* const GSNetworkNotificationCenterType;
#endif
GS_EXPORT_CLASS
@interface NSDistributedNotificationCenter : NSNotificationCenter
{
#if GS_EXPOSE(NSDistributedNotificationCenter)

View file

@ -163,6 +163,12 @@ findMisspelledWordInString: (NSString *)stringToCheck
@end
#if !NO_GNUSTEP
// Function to create name for spell server
GS_EXPORT NSString*
GSSpellServerName(NSString *vendor, NSString *language);
#endif
#if defined(__cplusplus)
}
#endif

View file

@ -42,6 +42,7 @@ extern "C" {
@class NSNotification;
GS_EXPORT_CLASS
@interface GSLazyLock : NSLock
{
int locked;
@ -49,6 +50,7 @@ extern "C" {
- (void) _becomeThreaded: (NSNotification*)n;
@end
GS_EXPORT_CLASS
@interface GSLazyRecursiveLock : NSRecursiveLock
{
int counter;

View file

@ -46,7 +46,7 @@ static NSConnection *spellServerConnection = nil;
static NSString *GNU_UserDictionariesDir = @"Dictionaries";
// Function to create name for spell server....
NSString*
GS_DECLARE NSString*
GSSpellServerName(NSString *vendor, NSString *language)
{
NSString *serverName = nil;