File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
stdlib/public/Darwin/ObjectiveC Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ import ObjectiveC
25
25
/// ObjCBool.
26
26
@frozen
27
27
public struct ObjCBool : ExpressibleByBooleanLiteral {
28
- #if os(macOS) || (os(iOS) && (arch(i386) || arch(arm)))
29
- // On OS X and 32-bit iOS, Objective-C's BOOL type is a "signed char".
28
+ #if ( os(macOS) && arch(x86_64) ) || (os(iOS) && (arch(i386) || arch(arm)))
29
+ // On Intel OS X and 32-bit iOS, Objective-C's BOOL type is a "signed char".
30
30
@usableFromInline var _value : Int8
31
31
32
32
@_transparent
@@ -52,7 +52,7 @@ public struct ObjCBool : ExpressibleByBooleanLiteral {
52
52
/// The value of `self`, expressed as a `Bool`.
53
53
@_transparent
54
54
public var boolValue : Bool {
55
- #if os(macOS) || (os(iOS) && (arch(i386) || arch(arm)))
55
+ #if ( os(macOS) && arch(x86_64) ) || (os(iOS) && (arch(i386) || arch(arm)))
56
56
return _value != 0
57
57
#else
58
58
return _value
Original file line number Diff line number Diff line change 2
2
@_exported import ObjectiveC
3
3
4
4
public struct ObjCBool : CustomStringConvertible {
5
- #if os(macOS) || (os(iOS) && (arch(i386) || arch(arm)))
5
+ #if (os(macOS) && arch(x86_64)) || (os(iOS) && (arch(i386) || arch(arm) || targetEnvironment(macCatalyst)))
6
+
6
7
// On macOS and 32-bit iOS, Objective-C's BOOL type is a "signed char".
7
8
private var value : Int8
8
9
You can’t perform that action at this time.
0 commit comments