mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
integrated some changes from GH# 249
This commit is contained in:
@@ -104,9 +104,9 @@ void FPETest::testFlags()
|
||||
// some compilers are intelligent enough to optimize the calculations below away.
|
||||
// unfortunately this leads to a failing test, so we have to trick out the
|
||||
// compiler's optimizer a little bit by doing something with the results.
|
||||
double a = 10;
|
||||
double b = 0;
|
||||
double c = div(a, b);
|
||||
volatile double a = 10;
|
||||
volatile double b = 0;
|
||||
volatile double c = div(a, b);
|
||||
|
||||
assert (FPE::isFlag(FPE::FP_DIVIDE_BY_ZERO));
|
||||
assert (FPE::isInfinite(c));
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
#if (POCO_OS == POCO_OS_HPUX) || (POCO_OS == POCO_OS_SOLARIS) || (POCO_OS == POCO_OS_WINDOWS_CE)
|
||||
#if (POCO_OS == POCO_OS_HPUX) || (POCO_OS == POCO_OS_SOLARIS) || (POCO_OS == POCO_OS_WINDOWS_CE) || (POCO_OS == POCO_OS_CYGWIN)
|
||||
#define POCO_BROKEN_TIMEOUTS 1
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user