summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/fenv.h
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-03-14 21:24:29 -0500
committerYaakov Selkowitz <yselkowi@redhat.com>2016-03-17 21:09:22 -0500
commit3237fb31b3178f7e42d6c1c0aca9ae622c8be6d1 (patch)
treeaf2c839f068c56e2dbd1f8ca079ce8957b54775e /winsup/cygwin/include/fenv.h
parent396942b0b59da602797ab63a502fe315b14fed84 (diff)
downloadcygnal-3237fb31b3178f7e42d6c1c0aca9ae622c8be6d1.tar.gz
cygnal-3237fb31b3178f7e42d6c1c0aca9ae622c8be6d1.tar.bz2
cygnal-3237fb31b3178f7e42d6c1c0aca9ae622c8be6d1.zip
Feature test macros overhaul: Cygwin headers
Use proper internal macros for BSD and GNU. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'winsup/cygwin/include/fenv.h')
-rw-r--r--winsup/cygwin/include/fenv.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/include/fenv.h b/winsup/cygwin/include/fenv.h
index b49033f29..497691374 100644
--- a/winsup/cygwin/include/fenv.h
+++ b/winsup/cygwin/include/fenv.h
@@ -11,6 +11,8 @@ details. */
#ifndef _FENV_H_
#define _FENV_H_
+#include <sys/cdefs.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -133,14 +135,14 @@ extern const fenv_t *_fe_dfl_env;
type "pointer to const-qualified fenv_t",may also be specified by
the implementation. */
-#ifdef _GNU_SOURCE
+#if __GNU_VISIBLE
/* If possible, the GNU C Library defines a macro FE_NOMASK_ENV which
represents an environment where every exception raised causes a trap
to occur. You can test for this macro using #ifdef. It is only defined
if _GNU_SOURCE is defined. */
extern const fenv_t *_fe_nomask_env;
#define FE_NOMASK_ENV (_fe_nomask_env)
-#endif /* _GNU_SOURCE */
+#endif /* __GNU_VISIBLE */
/* The following shall be declared as functions and may also be