File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,7 @@ public typealias CLongDouble = Double
86
86
// which we don't yet have in Swift.
87
87
#if arch(x86_64) || arch(i386)
88
88
public typealias CLongDouble = Float80
89
- #endif
90
- // TODO: Fill in definitions for other OSes.
91
- #if arch(s390x)
89
+ #elseif arch(s390x)
92
90
// On s390x '-mlong-double-64' option with size of 64-bits makes the
93
91
// Long Double type equivalent to Double type.
94
92
public typealias CLongDouble = Double
@@ -100,7 +98,19 @@ public typealias CLongDouble = Double
100
98
public typealias CLongDouble = Double
101
99
#endif
102
100
#elseif os(OpenBSD)
101
+ #if arch(x86_64)
102
+ public typealias CLongDouble = Float80
103
+ #else
104
+ #error("CLongDouble needs to be defined for this OpenBSD architecture")
105
+ #endif
106
+ #elseif os(FreeBSD)
107
+ #if arch(x86_64) || arch(i386)
103
108
public typealias CLongDouble = Float80
109
+ #else
110
+ #error("CLongDouble needs to be defined for this FreeBSD architecture")
111
+ #endif
112
+ #else
113
+ // TODO: define CLongDouble for other OSes
104
114
#endif
105
115
106
116
// FIXME: Is it actually UTF-32 on Darwin?
You can’t perform that action at this time.
0 commit comments