Commit Graph

10 Commits

Author SHA1 Message Date
Saleem Abdulrasool
7bb6185bbf Shims: make the __swift_ssize_t handling more portable
Unfortunately, `cl` does not support C11.  Guard the `_Generic` approach and in
C++ mode use `std::make_signed`.  Thanks to Jordan Rose for the reminder about
the type_traits helper!
2019-01-17 14:53:42 -08:00
Saleem Abdulrasool
92ef7e46dc stdlib: use some clever C11 to define ssize_t
`ssize_t` is not universally available as it is not a standard type.
However, we require clang to build the runtime due to custom calling
convention support.  As a result, we know that the compiler will support
the `_Generic` keyword from the C11 standard.  Use this with an
expansion to map the type appropriately for all targets.  This avoids
having to have a sanity check in the runtime that the type definition
matches the underlying system.
2018-10-08 11:49:02 -07:00
Mike Ash
1e8c35d8bb [Stdlib] Move the declaration of __swift_ssize_t to SwiftStddef.h so Random.h/cpp can use it. 2018-10-03 10:48:45 -04:00
Hugh Bellamy
52a362270c Attempt to fix Linux build - a clang/ubuntu bug means we can't find stddef.h 2017-02-20 19:52:39 +07:00
Hugh Bellamy
387ecad7b5 Cleanup redundant #ifdefs working around libc's stdint.h implementation pulling in Darwin 2017-02-20 17:58:57 +07:00
practicalswift
6d1ae2a39c [gardening] 2016 → 2017 2017-01-06 16:41:22 +01:00
practicalswift
797b80765f [gardening] Use the correct base URL (https://swift.org) in references to the Swift website
Remove all references to the old non-TLS enabled base URL (http://swift.org)
2016-11-20 17:36:03 +01:00
practicalswift
a3f857ca7b [gardening] Add "-*- C++ -*-" to header files currently missing it 2016-01-23 11:53:05 +01:00
Zach Panzarino
e3a4147ac9 Update copyright date 2015-12-31 23:28:40 +00:00
Dmitri Hrybenko
350248dae5 Reorganize the directory structure under 'stdlib'
The standard library has grown significantly, and we need a new
directory structure that clearly reflects the role of the APIs, and
allows future growth.

See stdlib/{public,internal,private}/README.txt for more information.

Swift SVN r25876
2015-03-09 05:26:05 +00:00