mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdint.h and stddef.h are shipped with CLang, but they not included in Clang's module.map, which causes Clang to import libc versions instead (and Clang's stdint.h is dispatching to libc). This was causing hard-to-debug transient failures during incremental rebuilds, like this: error: module file was created by an older version of the compiler: .../Darwin.swiftmodule Swift SVN r23230
20 lines
687 B
C
20 lines
687 B
C
//===--- SwiftStddef.h ----------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See http://swift.org/LICENSE.txt for license information
|
|
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SWIFT_STDLIB_SHIMS_SWIFT_STDDEF_H
|
|
#define SWIFT_STDLIB_SHIMS_SWIFT_STDDEF_H
|
|
|
|
typedef __SIZE_TYPE__ __swift_size_t;
|
|
|
|
#endif // SWIFT_STDLIB_SHIMS_SWIFT_STDDEF_H
|
|
|