/ NSRunLoopModes.m
NSRunLoopModes.m
1 // 2 // NSRunLoopModes.m 3 // Foundation 4 // 5 // Copyright (c) 2014 Apportable. All rights reserved. 6 // 7 8 #import <Foundation/NSString.h> 9 #import <CoreFoundation/CFRunLoop.h> 10 11 #import "NSRunLoopModesInternal.h" 12 13 // Forgive me, the loader is not merging NSStrings/CFStrings correctly 14 // This is a VERY hacky workaround. 15 #warning https://code.google.com/p/apportable/issues/detail?id=370 16 17 NSString *NSDefaultRunLoopMode = nil; 18 NSString *NSRunLoopCommonModes = nil; 19 20 static void NSRunLoopModeFix(void) __attribute__((constructor)); 21 static void NSRunLoopModeFix(void) 22 { 23 NSDefaultRunLoopMode = (NSString *)kCFRunLoopDefaultMode; 24 NSRunLoopCommonModes = (NSString *)kCFRunLoopCommonModes; 25 }