diff options
author | Dave Airlie <airlied@redhat.com> | 2022-01-19 17:42:04 +1000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-01-19 21:54:58 +0000 |
commit | 39bfb256271ad553ab2cad0700034cb359653def (patch) | |
tree | bf2b2adcdfd1c968302bf5f2b5ee869f01df6d55 /include | |
parent | 1352e0ba0cff7d0c590b89d8643262c85e12fc61 (diff) |
includes: add windows lean and mean guard.
When we drop gl.h some files pick up windows.h from here
without lean/mean and it causes conflicts.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14605>
Diffstat (limited to 'include')
-rw-r--r-- | include/c11/threads_win32.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/c11/threads_win32.h b/include/c11/threads_win32.h index 8c014fab45c..1b740d58176 100644 --- a/include/c11/threads_win32.h +++ b/include/c11/threads_win32.h @@ -54,7 +54,9 @@ Configuration macro: #endif #define EMULATED_THREADS_TSS_DTOR_SLOTNUM 64 // see TLS_MINIMUM_AVAILABLE - +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif #include <windows.h> // check configuration |