Files
swift-mirror/stdlib/public/SwiftShims/swift/shims/_SwiftConcurrency.h
Ian Anderson 288f37b2c1 [Concurrency] [shims] Don't declare exit in the concurrency shims
Don't delete the OS declaration of `exit` because the concurrency shims aren't always imported, and so the shim declaration might not always be available.
Don't override the OS declaration of `exit` in the concurrency shims since we can't just delete the OS one. Instead, set up internal shims just for building Concurrency that forward declares `exit`.
2024-01-29 16:25:46 -08:00

34 lines
969 B
C++

//===--- _SwiftConcurrency.h - Swift Concurrency Support --------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// Defines types and support functions for the Swift concurrency model.
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_CONCURRENCY_H
#define SWIFT_CONCURRENCY_H
#ifdef __cplusplus
namespace swift {
extern "C" {
#endif
typedef struct _SwiftContext {
struct _SwiftContext *parentContext;
} _SwiftContext;
#ifdef __cplusplus
} // extern "C"
} // namespace swift
#endif
#endif // SWIFT_CONCURRENCY_H