From 753c9b9f2004091517084d48194e8adc59cc227f Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Mon, 11 Jul 2022 18:30:37 -0500 Subject: [PATCH] Adjust the way FE_DFL_ENV is defined. This avoids any possible issue with code possibly expecting __FE_DFL_ENV to be in the data bank when using the large memory model, although I don't think that happened in practice. --- ORCACDefs/fenv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ORCACDefs/fenv.h b/ORCACDefs/fenv.h index 2bbce18..8fae325 100644 --- a/ORCACDefs/fenv.h +++ b/ORCACDefs/fenv.h @@ -27,8 +27,8 @@ typedef unsigned short fexcept_t; #define FE_TOWARDZERO 0xC0 #define FE_UPWARD 0x40 -extern const fenv_t __FE_DFL_ENV; -#define FE_DFL_ENV (&__FE_DFL_ENV) +extern const fenv_t __FE_DFL_ENV[1]; +#define FE_DFL_ENV (&*__FE_DFL_ENV) int feclearexcept(int); int fegetexceptflag(fexcept_t *, int);