[SR-7269] Explicitly declaring import CDispatch
is required to use NSEC_PER_SEC
on Linux.
#659
Labels
import CDispatch
is required to use NSEC_PER_SEC
on Linux.
#659
Environment
swift-4.1-DEVELOPMENT-SNAPSHOT-2018-03-22-a
Additional Detail from JIRA
md5: 771ca6a4f852f7ce29492a2d0a307f75
Issue Description:
Since swift-corelibs-libdispatch does not have
@_exported import CDispatch
, explicitly declaringimport CDispatch
is required to useNSEC_PER_SEC
on Linux.Since
CDispatch
does not exist on Darwin, we need to use#if !_runtime(_ObjC)
or#if os(Linux)
on importingCDispatch
. This is inconvenient.The text was updated successfully, but these errors were encountered: