summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-21 14:32:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-12-21 14:32:40 +0000
commitf5eb8a2fc2e56c0950db2fafeded593d569d43e9 (patch)
treeb24ed600b40fe5499176e294eceb37c8a045ee43 /tools
parent683e471f3559b3dc40dc697576baf0be9612b1fc (diff)
I hate you poxy msvc
Diffstat (limited to 'tools')
-rw-r--r--tools/Library_tl.mk2
-rw-r--r--tools/source/stream/stream.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/Library_tl.mk b/tools/Library_tl.mk
index 272457502e21..8dc9215a91a7 100644
--- a/tools/Library_tl.mk
+++ b/tools/Library_tl.mk
@@ -38,7 +38,7 @@ $(eval $(call gb_Library_set_include,tl,\
))
$(eval $(call gb_Library_add_defs,tl,\
- -DTOOLS_DLLIMPLEMENTATION \
+ -DTOOLS_DLLIMPLEMENTATION -DNOMINMAX\
))
$(eval $(call gb_Library_add_api,tl,\
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 2a5cd4a79927..3cfb90020b1f 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1287,7 +1287,7 @@ SvStream& SvStream::operator>>(float& r)
SvStream& SvStream::operator>>(double& r)
{
- double n;
+ double n = 0;
READNUMBER_WITHOUT_SWAP(double, n)
if (good())
{