Fix small windows/mingw portability issues in code used by the GUI

This commit is contained in:
Jean-Francois Dockes
2015-10-07 09:25:28 +02:00
parent 3b18facc16
commit 2a96ee4a27
9 changed files with 191 additions and 33 deletions
+4 -3
View File
@@ -51,7 +51,8 @@
#endif
#ifdef __WIN32__
#ifdef _MSC_VER
/* Recent MinGW versions define this */
inline unsigned int
sleep(unsigned int seconds)
{
@@ -72,7 +73,7 @@ sleep(unsigned int seconds)
xapian_sleep_milliseconds(seconds * 1000u);
return 0;
}
#endif
#endif /* _MSC_VER*/
#endif /* __WIN32__ */
#endif /* XAPIAN_INCLUDED_SAFEUNISTD_H */