1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 07:59:09 +00:00

(svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing decisions on its value.

This commit is contained in:
2005-12-16 22:01:38 +00:00
parent 28fe368b7f
commit 592aee1e27

View File

@@ -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