summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-30 17:54:48 +0000
committersmatz <smatz@openttd.org>2009-01-30 17:54:48 +0000
commitdf7966053102ed6e509992554ab7544c56454f26 (patch)
tree1e4742d382679303b0a826121f73634dee538903 /src/misc
parent1c7cb8368cb90a5e94daed132c6f49be40931c81 (diff)
downloadopenttd-df7966053102ed6e509992554ab7544c56454f26.tar.xz
(svn r15296) -Cleanup: remove redundant _MSC_VER >= 1400 checks, older versions aren't supported anymore. One check in stdafx.h is enough
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/binaryheap.hpp6
-rw-r--r--src/misc/strapi.hpp12
2 files changed, 6 insertions, 12 deletions
diff --git a/src/misc/binaryheap.hpp b/src/misc/binaryheap.hpp
index ed5a44b71..2206ccd03 100644
--- a/src/misc/binaryheap.hpp
+++ b/src/misc/binaryheap.hpp
@@ -5,12 +5,6 @@
#ifndef BINARYHEAP_HPP
#define BINARYHEAP_HPP
-//void *operator new (size_t size, void *p) {return p;}
-#if defined(_MSC_VER) && (_MSC_VER >= 1400)
-//void operator delete (void *p, void *p2) {}
-#endif
-
-
/**
* Binary Heap as C++ template.
*
diff --git a/src/misc/strapi.hpp b/src/misc/strapi.hpp
index 53e0dd9e5..eec7c6437 100644
--- a/src/misc/strapi.hpp
+++ b/src/misc/strapi.hpp
@@ -38,11 +38,11 @@ template <> /*static*/ inline size_t CStrApiBaseT<char>::StrLen(const char *s)
/** ::vsprintf wrapper specialization for char */
template <> /*static*/ inline int CStrApiBaseT<char>::SPrintFL(char *buf, size_t count, const char *fmt, va_list args)
{
-#if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(WINCE) // VC 8.0 and above
+#if defined(_MSC_VER) && !defined(WINCE)
return ::vsnprintf_s(buf, count, count - 1, fmt, args);
-#else /* ! VC 8.0 and above */
+#else
return ::vsnprintf(buf, count, fmt, args);
-#endif
+#endif /* _MSC_VER && ! WINCE */
}
#if defined(HAS_WCHAR)
@@ -55,15 +55,15 @@ template <> /*static*/ inline size_t CStrApiBaseT<wchar_t>::StrLen(const wchar_t
/** ::vsprintf wrapper specialization for wchar_t */
template <> /*static*/ inline int CStrApiBaseT<wchar_t>::SPrintFL(wchar_t *buf, size_t count, const wchar_t *fmt, va_list args)
{
-#if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(WINCE) // VC 8.0 and above
+#if defined(_MSC_VER) && !defined(WINCE)
return ::_vsnwprintf_s(buf, count, count - 1, fmt, args);
-#else /* ! VC 8.0 and above */
+#else
# if defined(_WIN32)
return ::_vsnwprintf(buf, count, fmt, args);
# else /* !_WIN32 */
return ::vswprintf(buf, count, fmt, args);
# endif /* !_WIN32 */
-#endif
+#endif /* _MSC_VER && ! WINCE */
}
#endif /* HAS_WCHAR */