From 244a8fae426a68ad51cd610cebd1361a834d676a Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Thu, 4 Apr 2002 08:54:50 +0000 Subject: [PATCH] * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW, TLOSS, PLOSS): Move oldname defines back, following the underscored names. --- winsup/mingw/ChangeLog | 6 ++++++ winsup/mingw/include/math.h | 25 +++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index caf7e140f..69fccbdb0 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,9 @@ +2002-04-04 Danny Smith + + * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW, + TLOSS, PLOSS): Move oldname defines back, following + the underscored names. + 2002-03-29 Danny Smith * include/stdio.h (_snwprintf): Correct spelling. diff --git a/winsup/mingw/include/math.h b/winsup/mingw/include/math.h index 3fcaa1e50..d94a7066c 100644 --- a/winsup/mingw/include/math.h +++ b/winsup/mingw/include/math.h @@ -46,9 +46,22 @@ */ #ifndef __STRICT_ANSI__ +#ifndef _NO_OLDNAMES + +#define DOMAIN _DOMAIN +#define SING _SING +#define OVERFLOW _OVERFLOW +#define UNDERFLOW _UNDERFLOW +#define TLOSS _TLOSS +#define PLOSS _PLOSS + +#endif /* Not _NO_OLDNAMES */ +#endif /* Not __STRICT_ANSI__ */ + /* These are also defined in Mingw float.h; needed here as well to work around GCC build issues. */ +#ifndef __STRICT_ANSI__ #ifndef __MINGW_FPCLASS_DEFINED #define __MINGW_FPCLASS_DEFINED 1 #define _FPCLASS_SNAN 0x0001 /* Signaling "Not a Number" */ @@ -62,20 +75,8 @@ #define _FPCLASS_PN 0x0100 /* Positive Normal */ #define _FPCLASS_PINF 0x0200 /* Positive Infinity */ #endif /* __MINGW_FPCLASS_DEFINED */ - -#ifndef _NO_OLDNAMES - -#define DOMAIN _DOMAIN -#define SING _SING -#define OVERFLOW _OVERFLOW -#define UNDERFLOW _UNDERFLOW -#define TLOSS _TLOSS -#define PLOSS _PLOSS - -#endif /* Not _NO_OLDNAMES */ #endif /* Not __STRICT_ANSI__ */ - #ifndef RC_INVOKED #ifdef __cplusplus