summaryrefslogtreecommitdiffstats
path: root/src/tools/tqlocale.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-10-28 13:39:23 +0900
committerMichele Calgaro <[email protected]>2024-10-28 13:39:23 +0900
commit69e1261df646edf24612d7f953dac81182e7461b (patch)
tree5d9a9e9600f0592c3732fe7c9402134fd22d6651 /src/tools/tqlocale.cpp
parentc9a75bccc60b6ac092f76a2624115fd8935f4888 (diff)
downloadtqt3-69e1261df646edf24612d7f953dac81182e7461b.tar.gz
tqt3-69e1261df646edf24612d7f953dac81182e7461b.zip
Drop Borland compiler specific code
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/tools/tqlocale.cpp')
-rw-r--r--src/tools/tqlocale.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/tools/tqlocale.cpp b/src/tools/tqlocale.cpp
index 77f3cae19..60cfc1bb0 100644
--- a/src/tools/tqlocale.cpp
+++ b/src/tools/tqlocale.cpp
@@ -5684,7 +5684,6 @@ static char *qdtoa ( double d, int mode, int ndigits, int *decpt, int *sign, cha
// Some values of the floating-point control word can cause _qdtoa to crash with an underflow.
// We set a safe value here.
#ifdef Q_OS_WIN
-#ifndef Q_CC_BOR
unsigned int oldbits = _control87(0, 0);
#ifndef _M_X64 //x64 does not support precition control
_control87(0x9001F, 0xFFFFF);
@@ -5692,7 +5691,6 @@ static char *qdtoa ( double d, int mode, int ndigits, int *decpt, int *sign, cha
_control87(0x9001F, _MCW_DN|_MCW_EM|_MCW_RC);
#endif //_M_X64
#endif
-#endif
#ifdef Q_OS_LINUX
fenv_t envp;
@@ -5702,7 +5700,6 @@ static char *qdtoa ( double d, int mode, int ndigits, int *decpt, int *sign, cha
char *s = _qdtoa(d, mode, ndigits, decpt, sign, rve, resultp);
#ifdef Q_OS_WIN
-#ifndef Q_CC_BOR
_clear87();
#ifndef _M_X64
_control87(oldbits, 0xFFFFF);
@@ -5710,7 +5707,6 @@ static char *qdtoa ( double d, int mode, int ndigits, int *decpt, int *sign, cha
_control87(oldbits, _MCW_DN|_MCW_EM|_MCW_RC);
#endif //_M_X64
#endif
-#endif
#ifdef Q_OS_LINUX
fesetenv(&envp);