summaryrefslogtreecommitdiff
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
commit592aee1e279c310c35c7cafba78a4d6fe7411bf0 (patch)
tree04495044c6849f74864b3ea43453db3bbcacc160
parent28fe368b7fee701d92c2c459c28bcaeae7f43235 (diff)
downloadopenttd-592aee1e279c310c35c7cafba78a4d6fe7411bf0.tar.xz
(svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing decisions on its value.
-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