File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 26
26
#include <TargetConditionals.h>
27
27
#endif
28
28
#include <sys/cdefs.h>
29
+ #include <sys/types.h>
29
30
#include <stddef.h>
30
31
#include <stdint.h>
31
32
#include <stdbool.h>
Original file line number Diff line number Diff line change 26
26
#include <dispatch/base.h> // for HeaderDoc
27
27
#endif
28
28
29
+ #ifdef __DISPATCH_BUILDING_SWIFT_MODULE__
30
+ #include <stdio.h>
31
+ #endif
32
+
29
33
__BEGIN_DECLS
30
34
31
35
/*! @header
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ SWIFT_OBJECTS= \
125
125
$(abs_builddir ) /Dispatch.swiftdoc \
126
126
$(abs_builddir ) /Dispatch.o
127
127
128
- SWIFTC_FLAGS = -Xcc -fmodule-map-file=$(abs_top_srcdir ) /dispatch/module.map -I$(abs_top_srcdir ) -parse-as-library -Xcc -fblocks
128
+ SWIFTC_FLAGS = -Xcc -D__DISPATCH_BUILDING_SWIFT_MODULE__=1 -Xcc - fmodule-map-file=$(abs_top_srcdir ) /dispatch/module.map -I$(abs_top_srcdir ) -parse-as-library -Xcc -fblocks
129
129
130
130
$(abs_builddir ) /Dispatch.o : $(abs_srcdir ) /swift/Dispatch.swift
131
131
$(SWIFTC ) $(SWIFTC_FLAGS ) -c -o $@ $<
You can’t perform that action at this time.
0 commit comments