Support building on Windows with Clang MSVC target

This commit is contained in:
Frederik Seiffert 2021-01-18 14:20:14 +01:00 committed by Frederik Seiffert
parent ece6fc97ff
commit 61709e6101
174 changed files with 991 additions and 320 deletions

View file

@ -4427,20 +4427,34 @@ static BOOL warned = NO; if (warned == NO) { warned = YES; NSLog(@"WARNING, use
/*
* Build dummy implementations of the classes if libxml is not available
*/
GS_EXPORT_CLASS
@interface GSXMLDummy : NSObject
@end
GS_EXPORT_CLASS
@interface GSXMLDocument : GSXMLDummy
@end
GS_EXPORT_CLASS
@interface GSXMLNamespace : GSXMLDummy
@end
GS_EXPORT_CLASS
@interface GSXMLNode : GSXMLDummy
@end
GS_EXPORT_CLASS
@interface GSSAXHandler : GSXMLDummy
@end
GS_EXPORT_CLASS
@interface GSXMLParser : GSXMLDummy
@end
GS_EXPORT_CLASS
@interface GSXMLAttribute : GSXMLNode
@end
@implementation GSXMLDummy
+ (id) allocWithZone: (NSZone*)z
{
@ -4470,16 +4484,28 @@ static BOOL warned = NO; if (warned == NO) { warned = YES; NSLog(@"WARNING, use
return nil;
}
@end
GS_EXPORT_CLASS
@implementation GSXMLDocument
@end
GS_EXPORT_CLASS
@implementation GSXMLNamespace
@end
GS_EXPORT_CLASS
@implementation GSXMLNode
@end
GS_EXPORT_CLASS
@implementation GSSAXHandler
@end
GS_EXPORT_CLASS
@implementation GSXMLParser
@end
GS_EXPORT_CLASS
@implementation GSXMLAttribute
@end

View file

@ -52,6 +52,8 @@ else ifeq ($(GNUSTEP_TARGET_OS),mingw64)
ADDITIONAL_OBJCFLAGS += -DBUILD_libgnustep_base_DLL=1
else ifeq ($(GNUSTEP_TARGET_OS),cygwin)
ADDITIONAL_OBJCFLAGS += -DBUILD_libgnustep_base_DLL=1
else ifeq ($(GNUSTEP_TARGET_OS),windows)
ADDITIONAL_OBJCFLAGS += -DBUILD_libgnustep_base_DLL=1
endif
# Additional flags to pass to the C compiler