summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_time.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-05-01 00:59:12 +0900
committerJosé Fonseca <[email protected]>2008-05-01 02:25:23 +0900
commitcafb545721e6c9479c07d3a7a891236e006d3376 (patch)
treef1a6c508912ecb3019d38cd7fc7f922cefddceb5 /src/gallium/auxiliary/util/u_time.c
parentc9acd439b1af4b037ded324139664cf9832930f8 (diff)
d3d: Windows miniport driver portability fixes.
Diffstat (limited to 'src/gallium/auxiliary/util/u_time.c')
-rw-r--r--src/gallium/auxiliary/util/u_time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_time.c b/src/gallium/auxiliary/util/u_time.c
index dd28ff41340..9b97050d51a 100644
--- a/src/gallium/auxiliary/util/u_time.c
+++ b/src/gallium/auxiliary/util/u_time.c
@@ -37,11 +37,11 @@
#if defined(PIPE_OS_LINUX)
#include <sys/time.h>
-#elif defined(PIPE_OS_WINDOWS)
+#elif defined(PIPE_SUBSYSTEM_WINDOWS_DISPLAY)
#include <windows.h>
-#if defined(PIPE_SUBSYSTEM_WINDOWS_DISPLAY)
#include <winddi.h>
-#endif
+#elif defined(PIPE_SUBSYSTEM_WINDOWS_USER)
+#include <windows.h>
#else
#error Unsupported OS
#endif