Skip to content

Commit a535573

Browse files
committed
move stdio.h include to dispatch.h
Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
1 parent 6e7856e commit a535573

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dispatch/dispatch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
#include <unistd.h>
3535
#include <fcntl.h>
3636

37+
#if defined(__linux__) && defined(__DISPATCH_BUILDING_SWIFT_MODULE__)
38+
#include <stdio.h> // for off_t
39+
#endif
40+
3741
#ifndef __OSX_AVAILABLE_STARTING
3842
#define __OSX_AVAILABLE_STARTING(x, y)
3943
#endif

dispatch/io.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
#include <dispatch/base.h> // for HeaderDoc
2727
#endif
2828

29-
#ifdef __DISPATCH_BUILDING_SWIFT_MODULE__
30-
#include <stdio.h>
31-
#endif
32-
3329
__BEGIN_DECLS
3430

3531
/*! @header

0 commit comments

Comments
 (0)