diff options
author | Rob Clark <[email protected]> | 2017-05-08 13:34:53 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-05-08 13:41:16 -0400 |
commit | ae7aa8dbaf7c65a8b0d86713530a751b7d2f10b0 (patch) | |
tree | b7a007fc563d0d76aaa7e610e5d57030218276fb /src/compiler/nir/nir.h | |
parent | 25d246f4544ff952fc288bc8abb84b18c582ac79 (diff) |
nir: fix (hopefully) windows build
Fixes: 53aa109b ("nir: add pass to lower atomic counters to SSBO")
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index b6bc3fa7c20..2a9ab542f6e 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -47,6 +47,10 @@ #include "nir_opcodes.h" +#if defined(_WIN32) && !defined(snprintf) +#define snprintf _snprintf +#endif + #ifdef __cplusplus extern "C" { #endif |