Skip to content

Commit 5a27b4c

Browse files
authored
Export fenv functions on all platforms (#213)
Win32 has been using a hack to switch the `fenv` functions from `static` to `DLLEXPORT`, we apply that hack to all platforms that do not use a host `fenv.h`.
1 parent 878948d commit 5a27b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amd64/fenv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "bsd_fpu.h"
3030
#include "math_private.h"
3131

32-
#ifdef _WIN32
32+
#ifndef OPENLIBM_USE_HOST_FENV_H
3333
#define __fenv_static OLM_DLLEXPORT
3434
#endif
3535
#include <openlibm_fenv.h>

0 commit comments

Comments
 (0)