Skip to content

Commit

Permalink
Export fenv functions on all platforms (#213)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
staticfloat authored Sep 2, 2020
1 parent 878948d commit 5a27b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amd64/fenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "bsd_fpu.h"
#include "math_private.h"

#ifdef _WIN32
#ifndef OPENLIBM_USE_HOST_FENV_H
#define __fenv_static OLM_DLLEXPORT
#endif
#include <openlibm_fenv.h>
Expand Down

0 comments on commit 5a27b4c

Please sign in to comment.