summaryrefslogtreecommitdiff
path: root/cpp/test/Freeze/complex/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Freeze/complex/Parser.cpp')
-rw-r--r--cpp/test/Freeze/complex/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Freeze/complex/Parser.cpp b/cpp/test/Freeze/complex/Parser.cpp
index 8d1754cb503..93ed7e778eb 100644
--- a/cpp/test/Freeze/complex/Parser.cpp
+++ b/cpp/test/Freeze/complex/Parser.cpp
@@ -69,8 +69,8 @@ Parser::getInput(char* buf, int& result, int maxSize)
{
if(!_buf.empty())
{
-#if defined(_MSC_VER) && !defined(_STLP_MSVC)
- // COMPILERBUG: Stupid Visual C++ defines min and max as macros
+#if defined(_MSC_VER) && _MSC_VER < 1500 && !defined(_STLP_MSVC)
+ // COMPILERBUG: Visual C++ defines min and max as macros
result = _MIN(maxSize, static_cast<int>(_buf.length()));
#else
result = min(maxSize, static_cast<int>(_buf.length()));