File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,16 @@ static void _dispatch_overlay_constructor() {
51
51
52
52
#endif /* USE_OBJC */
53
53
54
- #if 0 /* FIXME -- adding directory to include path may need build-script plumbing to do properly... */
55
- #include "swift/Runtime/Config.h"
54
+
55
+ // Replicate the SWIFT_CC(swift) calling convention macro from
56
+ // swift/include/swift/Runtime/Config.h because it is
57
+ // quite awkward to include Config.h and its recursive includes
58
+ // in dispatch. This define must be manually kept in synch
59
+ #define SWIFT_CC (CC ) SWIFT_CC_##CC
60
+ #if SWIFT_USE_SWIFTCALL
61
+ #define SWIFT_CC_swift __attribute__ ((swiftcall))
56
62
#else
57
- #define SWIFT_CC ( x ) /* FIXME!! */
63
+ #define SWIFT_CC_swift
58
64
#endif
59
65
60
66
SWIFT_CC (swift) DISPATCH_RUNTIME_STDLIB_INTERFACE
You can’t perform that action at this time.
0 commit comments