aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/scummsys.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/scummsys.h b/common/scummsys.h
index 5366f36e9f..012e169bfc 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -66,7 +66,10 @@
#pragma warning( disable : 4702 ) // turn off "unreachable code" warning
#pragma warning( disable : 4706 ) // turn off "assignment within conditional expression" warning
- #define vsnprintf _vsnprintf
+ // vsnprintf is already defined in Visual Studio 2008
+ #if (_MSC_VER < 1500)
+ #define vsnprintf _vsnprintf
+ #endif
#endif
#if !defined(_WIN32_WCE)