Skip to content

Commit 07d2c86

Browse files
committed
Add similar check in definitions as declarations.
1 parent 4488716 commit 07d2c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Evaluate/intrinsics-library.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ template <> struct HostRuntimeLibrary<double, LibraryVersion::LibmExtensions> {
415415
static_assert(map.Verify(), "map must be sorted");
416416
};
417417

418-
#if HAS_FLOAT80 || HAS_LDBL128
418+
#if defined(__GLIBC__) && (HAS_FLOAT80 || HAS_LDBL128)
419419
template <>
420420
struct HostRuntimeLibrary<long double, LibraryVersion::LibmExtensions> {
421421
using F = FuncPointer<long double, long double>;

0 commit comments

Comments
 (0)