diff options
author | José Fonseca <[email protected]> | 2008-04-25 18:19:51 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-04-25 18:19:51 +0900 |
commit | b06cd4debfc4fb4162b4b45e61ea91948de0a279 (patch) | |
tree | 165722cb5b3bed06939a60f925980f668b63b56d /src/gallium/auxiliary/util/u_time.h | |
parent | dacfef158943665fc0d11035867d14ff1f5db332 (diff) |
gallium: Windows user mode portability fixes.
Diffstat (limited to 'src/gallium/auxiliary/util/u_time.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_time.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_time.h b/src/gallium/auxiliary/util/u_time.h index c8836c137fa..48ec7a4a963 100644 --- a/src/gallium/auxiliary/util/u_time.h +++ b/src/gallium/auxiliary/util/u_time.h @@ -36,7 +36,9 @@ #define U_TIME_H_ -#ifndef WIN32 +#include "pipe/p_config.h" + +#if defined(PIPE_OS_LINUX) #include <time.h> /* timeval */ #include <unistd.h> /* usleep */ #endif @@ -56,7 +58,7 @@ extern "C" { */ struct util_time { -#ifndef WIN32 +#if defined(PIPE_OS_LINUX) struct timeval tv; #else long long counter; @@ -84,7 +86,7 @@ util_time_timeout(const struct util_time *start, const struct util_time *end, const struct util_time *curr); -#ifndef WIN32 +#if defined(PIPE_OS_LINUX) #define util_time_sleep usleep #else void |