Skip to content

Commit 45d2111

Browse files
committed
Changed IS_CYGWIN to CYGWIN
In swift standard libary, `-DCYGWIN` is used for the compiler option. For consistency, I replaced all IS_CYGWIN to CYGWIN.
1 parent abec5fb commit 45d2111

20 files changed

+34
-34
lines changed

Foundation/FoundationErrors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public extension NSCocoaError {
245245

246246
#if os(OSX) || os(iOS)
247247
import Darwin
248-
#elseif os(Linux) || IS_CYGWIN
248+
#elseif os(Linux) || CYGWIN
249249
import Glibc
250250
#endif
251251

Foundation/NSAffineTransform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#if os(OSX) || os(iOS)
1111
import Darwin
12-
#elseif os(Linux) || IS_CYGWIN
12+
#elseif os(Linux) || CYGWIN
1313
import Glibc
1414
#endif
1515

Foundation/NSConcreteValue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import CoreFoundation
1111

1212
#if os(OSX) || os(iOS)
1313
import Darwin
14-
#elseif os(Linux) || IS_CYGWIN
14+
#elseif os(Linux) || CYGWIN
1515
import Glibc
1616
#endif
1717

Foundation/NSData.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import CoreFoundation
1111

1212
#if os(OSX) || os(iOS)
1313
import Darwin
14-
#elseif os(Linux) || IS_CYGWIN
14+
#elseif os(Linux) || CYGWIN
1515
import Glibc
1616
#endif
1717

@@ -410,7 +410,7 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
410410
repeat {
411411
#if os(OSX) || os(iOS)
412412
bytesWritten = Darwin.write(fd, buf.advanced(by: length - bytesRemaining), bytesRemaining)
413-
#elseif os(Linux) || IS_CYGWIN
413+
#elseif os(Linux) || CYGWIN
414414
bytesWritten = Glibc.write(fd, buf.advanced(by: length - bytesRemaining), bytesRemaining)
415415
#endif
416416
} while (bytesWritten < 0 && errno == EINTR)

Foundation/NSDate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import CoreFoundation
1111

1212
#if os(OSX) || os(iOS)
1313
import Darwin
14-
#elseif os(Linux) || IS_CYGWIN
14+
#elseif os(Linux) || CYGWIN
1515
import Glibc
1616
#endif
1717

Foundation/NSFileHandle.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import CoreFoundation
1111

1212
#if os(OSX) || os(iOS)
1313
import Darwin
14-
#elseif os(Linux) || IS_CYGWIN
14+
#elseif os(Linux) || CYGWIN
1515
import Glibc
1616
#endif
1717

Foundation/NSFileManager.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#if os(OSX) || os(iOS)
1111
import Darwin
12-
#elseif os(Linux) || IS_CYGWIN
12+
#elseif os(Linux) || CYGWIN
1313
import Glibc
1414
#endif
1515

@@ -123,7 +123,7 @@ open class FileManager : NSObject {
123123
}
124124
#if os(OSX) || os(iOS)
125125
let modeT = number.uint16Value
126-
#elseif os(Linux) || IS_CYGWIN
126+
#elseif os(Linux) || CYGWIN
127127
let modeT = number.uint32Value
128128
#endif
129129
if chmod(path, modeT) != 0 {
@@ -246,7 +246,7 @@ open class FileManager : NSObject {
246246
}
247247
#if os(OSX) || os(iOS)
248248
let tempEntryType = entryType
249-
#elseif os(Linux) || IS_CYGWIN
249+
#elseif os(Linux) || CYGWIN
250250
let tempEntryType = Int(entryType)
251251
#endif
252252

Foundation/NSGeometry.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#if os(OSX) || os(iOS)
1111
import Darwin
12-
#elseif os(Linux) || IS_CYGWIN
12+
#elseif os(Linux) || CYGWIN
1313
import Glibc
1414
#endif
1515

Foundation/NSHost.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#if os(OSX) || os(iOS)
1212
import Darwin
13-
#elseif os(Linux) || IS_CYGWIN
13+
#elseif os(Linux) || CYGWIN
1414
import Glibc
1515
#endif
1616

Foundation/NSJSONSerialization.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import CoreFoundation
1111

1212
#if os(OSX) || os(iOS)
1313
import Darwin
14-
#elseif os(Linux) || IS_CYGWIN
14+
#elseif os(Linux) || CYGWIN
1515
import Glibc
1616
#endif
1717

0 commit comments

Comments
 (0)