Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 5dd11700021c3f1d77d9eaac8a675a41bfa6baad..e73e426c4d00782b99bb414a4a0a345969312738 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -245,7 +245,7 @@ static void ReserveSpaceForSnapshot(Deserializer* deserializer, |
name.Dispose(); |
int new_size, pointer_size, data_size, code_size, map_size, cell_size, |
property_cell_size, lo_size; |
-#ifdef _MSC_VER |
+#if V8_CC_MSVC |
// Avoid warning about unsafe fscanf from MSVC. |
// Please note that this is only fine if %c and %s are not being used. |
#define fscanf fscanf_s |
@@ -258,7 +258,7 @@ static void ReserveSpaceForSnapshot(Deserializer* deserializer, |
CHECK_EQ(1, fscanf(fp, "cell %d\n", &cell_size)); |
CHECK_EQ(1, fscanf(fp, "property cell %d\n", &property_cell_size)); |
CHECK_EQ(1, fscanf(fp, "lo %d\n", &lo_size)); |
-#ifdef _MSC_VER |
+#if V8_CC_MSVC |
#undef fscanf |
#endif |
fclose(fp); |