|
a/src/xaposix/safeunistd.h |
|
b/src/xaposix/safeunistd.h |
|
... |
|
... |
49 |
# include <process.h>
|
49 |
# include <process.h>
|
50 |
|
50 |
|
51 |
#endif
|
51 |
#endif
|
52 |
|
52 |
|
53 |
#ifdef __WIN32__
|
53 |
#ifdef __WIN32__
|
54 |
|
54 |
#ifdef _MSC_VER
|
|
|
55 |
/* Recent MinGW versions define this */
|
55 |
inline unsigned int
|
56 |
inline unsigned int
|
56 |
sleep(unsigned int seconds)
|
57 |
sleep(unsigned int seconds)
|
57 |
{
|
58 |
{
|
58 |
// Use our own little helper function to avoid pulling in <windows.h>.
|
59 |
// Use our own little helper function to avoid pulling in <windows.h>.
|
59 |
extern void xapian_sleep_milliseconds(unsigned int millisecs);
|
60 |
extern void xapian_sleep_milliseconds(unsigned int millisecs);
|
|
... |
|
... |
70 |
return seconds - 4294967u;
|
71 |
return seconds - 4294967u;
|
71 |
}
|
72 |
}
|
72 |
xapian_sleep_milliseconds(seconds * 1000u);
|
73 |
xapian_sleep_milliseconds(seconds * 1000u);
|
73 |
return 0;
|
74 |
return 0;
|
74 |
}
|
75 |
}
|
75 |
|
76 |
#endif /* _MSC_VER*/
|
76 |
#endif
|
77 |
#endif /* __WIN32__ */
|
77 |
|
78 |
|
78 |
#endif /* XAPIAN_INCLUDED_SAFEUNISTD_H */
|
79 |
#endif /* XAPIAN_INCLUDED_SAFEUNISTD_H */
|