integrated some changes from GH# 249

This commit is contained in:
Guenter Obiltschnig
2013-07-30 14:31:36 +02:00
parent 448d4f3da3
commit 915265f2cb
2 changed files with 4 additions and 4 deletions

View File

@@ -104,9 +104,9 @@ void FPETest::testFlags()
// some compilers are intelligent enough to optimize the calculations below away. // 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 // 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. // compiler's optimizer a little bit by doing something with the results.
double a = 10; volatile double a = 10;
double b = 0; volatile double b = 0;
double c = div(a, b); volatile double c = div(a, b);
assert (FPE::isFlag(FPE::FP_DIVIDE_BY_ZERO)); assert (FPE::isFlag(FPE::FP_DIVIDE_BY_ZERO));
assert (FPE::isInfinite(c)); assert (FPE::isInfinite(c));

View File

@@ -262,7 +262,7 @@
#endif #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 #define POCO_BROKEN_TIMEOUTS 1
#endif #endif