Add NSConstantString literal as global variable to avoid linker error

This commit is contained in:
hmelder 2024-09-09 10:51:36 +02:00
parent 847a42dcba
commit 844f7c5587
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,9 @@
#import <Foundation/Foundation.h>
#if defined(__OBJC__) && defined(__clang__) && defined(_MSC_VER)
id __work_around_clang_bug = @"__unused__";
#endif
#if GS_HAVE_NSURLSESSION
#import "Helpers/HTTPServer.h"

View file

@ -3,6 +3,10 @@
#include <Foundation/NSProgress.h>
#include <Foundation/NSString.h>
#if defined(__OBJC__) && defined(__clang__) && defined(_MSC_VER)
id __work_around_clang_bug = @"__unused__";
#endif
#if GS_HAVE_NSURLSESSION
#import "Helpers/HTTPServer.h"