(svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing decisions on its value.
authorpeter1138
Fri, 16 Dec 2005 22:01:38 +0000
changeset 2764 6225ab46af43
parent 2763 d579caf58b59
child 2765 b00f2d3d7964
(svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing decisions on its value.
win32.c
--- a/win32.c	Thu Dec 15 17:55:59 2005 +0000
+++ b/win32.c	Fri Dec 16 22:01:38 2005 +0000
@@ -1218,6 +1218,7 @@
 	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 @@
 	return ret;
 }
 #endif
+#endif
 
 /**
  * Insert a chunk of text from the clipboard onto the textbuffer. Get TEXT clipboard