summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libw32c.cc
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-13 03:18:38 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-13 06:23:13 -0700
commit475091c67389ed61cf7589c9b7037fbd8c916b70 (patch)
tree9e7a8d3323b30a95896fdcc89249ebe2b69a480e /crawl-ref/source/libw32c.cc
parent18bf8b6c7b04fe232d240e6677f39de09d7a590f (diff)
downloadcrawl-ref-475091c67389ed61cf7589c9b7037fbd8c916b70.tar.gz
crawl-ref-475091c67389ed61cf7589c9b7037fbd8c916b70.zip
platform detection: clean up abuse of '_MSC_VER' macro
Use TARGET_COMPILER_VC instead, unless you need to find the Visual C++ version information. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/libw32c.cc')
-rw-r--r--crawl-ref/source/libw32c.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/libw32c.cc b/crawl-ref/source/libw32c.cc
index 1c0c4d9b59..495c479903 100644
--- a/crawl-ref/source/libw32c.cc
+++ b/crawl-ref/source/libw32c.cc
@@ -1051,7 +1051,7 @@ int get_number_of_cols()
return (screensize.X);
}
-#if _MSC_VER
+#ifdef TARGET_COMPILER_VC
struct DIR
{
public:
@@ -1157,6 +1157,6 @@ int ftruncate(int fp, int size)
return 0;
}
-#endif /* #if _MSC_VER */
+#endif /* #ifdef TARGET_COMPILER_VC */
#endif /* #if defined(WIN32CONSOLE) */