Mesa (master): mesa: Fix windows build.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Feb 23 11:55:07 UTC 2009
Module: Mesa
Branch: master
Commit: 1456af2f2d7602a1f1fca54d8fe625e25851e441
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1456af2f2d7602a1f1fca54d8fe625e25851e441
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Feb 23 11:24:46 2009 +0000
mesa: Fix windows build.
---
src/mesa/glapi/glthread.h | 6 +++---
src/mesa/main/dlopen.c | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/mesa/glapi/glthread.h b/src/mesa/glapi/glthread.h
index ae2f79f..4da31e5 100644
--- a/src/mesa/glapi/glthread.h
+++ b/src/mesa/glapi/glthread.h
@@ -299,11 +299,11 @@ typedef benaphore _glthread_Mutex;
* THREADS not defined
*/
-typedef GLuint _glthread_TSD;
+typedef unsigned _glthread_TSD;
-typedef GLuint _glthread_Thread;
+typedef unsigned _glthread_Thread;
-typedef GLuint _glthread_Mutex;
+typedef unsigned _glthread_Mutex;
#define _glthread_DECLARE_STATIC_MUTEX(name) static _glthread_Mutex name = 0
diff --git a/src/mesa/main/dlopen.c b/src/mesa/main/dlopen.c
index 0fc0c21..338246b 100644
--- a/src/mesa/main/dlopen.c
+++ b/src/mesa/main/dlopen.c
@@ -33,6 +33,9 @@
#if defined(_GNU_SOURCE) && !defined(__MINGW32__)
#include <dlfcn.h>
#endif
+#if defined(_WIN32)
+#include <windows.h>
+#endif
/**
More information about the mesa-commit
mailing list