Skip to content

Commit f873569

Browse files
committed
stdlib: define typealias CLongDouble for FreeBSD on i386, x86_64
This fixes a failure compiling the stdlib where the importer cannot find (i.e., refuses to import) functions _stdlib_remainderl and _stdlib_squareRootl.
1 parent 4603c84 commit f873569

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/core/CTypes.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ public typealias CLongDouble = Double
101101
#endif
102102
#elseif os(OpenBSD)
103103
public typealias CLongDouble = Float80
104+
#elseif os(FreeBSD)
105+
#if arch(x86_64) || arch(i386)
106+
public typealias CLongDouble = Float80
107+
#endif
108+
// TODO: Fill in definitions for additional architectures as needed.
104109
#endif
105110

106111
// FIXME: Is it actually UTF-32 on Darwin?

0 commit comments

Comments
 (0)