Skip to content

Commit a5ed7fc

Browse files
committed
stdlib: use __swift_ssize_t instead of ssize_t (NFC)
`ssize_t` is not available on Windows. We have an internal type definition `__swift_ssize_t` which allows us to use the type. Switch to that spelling.
1 parent 72be1dc commit a5ed7fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/SwiftShims/LibcOverlayShims.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int static inline _swift_stdlib_openat(int fd, const char *path, int oflag,
114114
}
115115
#endif
116116

117-
static inline ssize_t
117+
static inline __swift_ssize_t
118118
_swift_stdlib_read(int fd, void *buf, size_t nbyte) {
119119
#if defined(_WIN32)
120120
return _read(fd, buf, nbyte);
@@ -123,7 +123,7 @@ _swift_stdlib_read(int fd, void *buf, size_t nbyte) {
123123
#endif
124124
}
125125

126-
static inline ssize_t
126+
static inline __swift_ssize_t
127127
_swift_stdlib_write(int fd, const void *buf, size_t nbyte) {
128128
#if defined(_WIN32)
129129
return _write(fd, buf, nbyte);

0 commit comments

Comments
 (0)