adding support for different windows compiler
[xboard.git] / backend.c
index 9c49e05..5ae5525 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -12899,6 +12899,11 @@ DisplayBothClocks()
    you have neither ftime nor gettimeofday.\r
 */\r
 \r
+/* VS 2008 requires the #include outside of the function */\r
+#if !HAVE_GETTIMEOFDAY && HAVE_FTIME\r
+#include <sys/timeb.h>\r
+#endif\r
+\r
 /* Get the current time as a TimeMark */\r
 void\r
 GetTimeMark(tm)\r