File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 44
44
#endif
45
45
46
46
#ifdef __linux__
47
- #ifdef __DISPATCH_BUILDING_SWIFT_MODULE__
48
- #include <stdio.h> // for off_t
47
+ #if __has_feature ( modules )
48
+ #include <stdio.h> // for off_t (to match Glibc.modulemap)
49
49
#endif
50
50
#define DISPATCH_LINUX_UNAVAILABLE () \
51
51
__DISPATCH_UNAVAILABLE("This interface is unavailable on linux systems")
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ typedef union {
108
108
#define DISPATCH_RETURNS_RETAINED
109
109
#endif
110
110
111
- #if OS_OBJECT_SWIFT3
111
+ #if OS_OBJECT_SWIFT3 && OS_OBJECT_USE_OBJC
112
112
#define DISPATCH_SOURCE_TYPE_DECL (name ) \
113
113
DISPATCH_EXPORT struct dispatch_source_type_s \
114
114
_dispatch_source_type_##name; \
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ SWIFT_GEN_FILES= \
149
149
$(SWIFT_OBJ_FILES:%=%.~partial.swiftdoc ) \
150
150
$(SWIFT_OBJ_FILES:%=%.~partial.swiftdeps )
151
151
152
- SWIFTC_FLAGS = -Xcc -D__DISPATCH_BUILDING_SWIFT_MODULE__=1 -Xcc - fmodule-map-file=$(abs_top_srcdir ) /dispatch/module.modulemap -I$(abs_top_srcdir ) -Xcc -fblocks
152
+ SWIFTC_FLAGS = -Xcc -fmodule-map-file=$(abs_top_srcdir ) /dispatch/module.modulemap -I$(abs_top_srcdir ) -Xcc -fblocks
153
153
154
154
$(abs_builddir ) /swift/% .o : $(abs_srcdir ) /swift/% .swift
155
155
$(SWIFTC ) -frontend -c $(SWIFT_ABS_SRC_FILES ) -primary-file $< \
You can’t perform that action at this time.
0 commit comments