Mesa (master): util: Fix rwlock Windows include for MinGW
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 20 08:47:32 UTC 2020
Module: Mesa
Branch: master
Commit: ed0eb511d9c342f1cd308a14a82782c965e06ffe
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed0eb511d9c342f1cd308a14a82782c965e06ffe
Author: James Park <jpark37 at lagfreegames.com>
Date: Mon Oct 19 03:51:46 2020 -0700
util: Fix rwlock Windows include for MinGW
MinGW uses windows.h, and not Windows.h.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7215>
---
src/util/rwlock.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/rwlock.h b/src/util/rwlock.h
index 695241179b8..4498bf86253 100644
--- a/src/util/rwlock.h
+++ b/src/util/rwlock.h
@@ -29,7 +29,7 @@
#define RWLOCK_H
#ifdef _WIN32
-#include <Windows.h>
+#include <windows.h>
#else
#include <pthread.h>
#endif
More information about the mesa-commit
mailing list