Commit f0674a80 authored by Vinson Lee's avatar Vinson Lee
Browse files

util: Define usleep for MSVC only.



MinGW has usleep.

Fixes MinGW build error introduced in previous commit.

piglit-util.h:76:30: error: expected declaration specifiers or '...' before '(' token
 #define usleep(__usec) Sleep(((__usec) + 999)/1000)
                              ^
Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
parent f1aa6402
......@@ -70,11 +70,9 @@ extern "C" {
#define snprintf _snprintf
#endif /* defined(_MSC_VER) */
#ifdef _WIN32
#define usleep(__usec) Sleep(((__usec) + 999)/1000)
#endif
#endif /* defined(_MSC_VER) */
#if (__GNUC__ >= 3)
#define PRINTFLIKE(f, a) __attribute__ ((format(__printf__, f, a)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment