summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-12-16 22:01:38 +0000
committerpeter1138 <peter1138@openttd.org>2005-12-16 22:01:38 +0000
commit32d75fd9221cb297b6450aa3e5d1d0fa27d6b6d9 (patch)
tree04495044c6849f74864b3ea43453db3bbcacc160 /win32.c
parent49f0691c1a6edc8bbc767aeea9383c71432c1f03 (diff)
downloadopenttd-32d75fd9221cb297b6450aa3e5d1d0fa27d6b6d9.tar.xz
(svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing decisions on its value.
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32.c b/win32.c
index 579b1109e..ce235ab20 100644
--- a/win32.c
+++ b/win32.c
@@ -1218,6 +1218,7 @@ int CDECL snprintf(char *str, size_t size, const char *format, ...)
return ret;
}
+#ifdef _MSC_VER
#if _MSC_VER < 1400 /* Already defined in VS 2005 */
int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
{
@@ -1227,6 +1228,7 @@ int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
return ret;
}
#endif
+#endif
/**
* Insert a chunk of text from the clipboard onto the textbuffer. Get TEXT clipboard