Skip to content

Commit 4a2eaa9

Browse files
committed
build: use feenableexcept only on glibc
feenableexcept is a GNU extention and is not part of the standard. For example, musl libc does not implement it. Signed-off-by: omcaif <[email protected]>
1 parent eeb5d73 commit 4a2eaa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libOpenImageIO/imageinout_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ main(int argc, char* argv[])
537537
getargs(argc, argv);
538538

539539
if (enable_fpe) {
540-
#if defined(__linux__)
540+
#if defined(__GLIBC__)
541541
fprintf(stderr, "Enable floating point exceptions.\n");
542542
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
543543
#else

0 commit comments

Comments
 (0)