Index: src/base/platform/platform-win32.cc |
diff --git a/src/base/platform/platform-win32.cc b/src/base/platform/platform-win32.cc |
index 10f89de68080e793bf944cffbed72ca405ad0231..9b554b221e5af779a900c1445e0f2bf7669ec273 100644 |
--- a/src/base/platform/platform-win32.cc |
+++ b/src/base/platform/platform-win32.cc |
@@ -15,9 +15,7 @@ |
#endif // MINGW_HAS_SECURE_API |
#endif // __MINGW32__ |
-#ifdef _MSC_VER |
#include <limits> |
-#endif |
#include "src/base/win32-headers.h" |
@@ -28,16 +26,6 @@ |
#include "src/base/platform/time.h" |
#include "src/base/utils/random-number-generator.h" |
-#ifdef _MSC_VER |
- |
-// Case-insensitive bounded string comparisons. Use stricmp() on Win32. Usually |
-// defined in strings.h. |
-int strncasecmp(const char* s1, const char* s2, int n) { |
- return _strnicmp(s1, s2, n); |
-} |
- |
-#endif // _MSC_VER |
- |
// Extra functions for MinGW. Most of these are the _s functions which are in |
// the Microsoft Visual Studio C++ CRT. |
@@ -832,7 +820,7 @@ void OS::Abort() { |
void OS::DebugBreak() { |
-#ifdef _MSC_VER |
+#if V8_CC_MSVC |
// To avoid Visual Studio runtime support the following code can be used |
// instead |
// __asm { int 3 } |
@@ -1175,11 +1163,7 @@ void OS::SignalCodeMovingGC() { } |
double OS::nan_value() { |
-#ifdef _MSC_VER |
return std::numeric_limits<double>::quiet_NaN(); |
-#else // _MSC_VER |
- return NAN; |
-#endif // _MSC_VER |
} |