projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ad060
)
nir: Fix missing snprintf symbol on Windows.
author
Jose Fonseca
<jfonseca@vmware.com>
Sun, 7 May 2017 16:58:56 +0000
(17:58 +0100)
committer
Jose Fonseca
<jfonseca@vmware.com>
Sun, 7 May 2017 18:23:07 +0000
(19:23 +0100)
Copy nir_print.c's snprintf definition for now, to unbreak Windows
builds.
We can and should cleanup all snprintf definitions in a follow up
change, but I rather not leave Windows build broken any further.
Trivial.
src/compiler/nir/nir_lower_atomics_to_ssbo.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_lower_atomics_to_ssbo.c
b/src/compiler/nir/nir_lower_atomics_to_ssbo.c
index 976371bb9c9c6d56753978d01d8b1c5bec1e039c..27fe50bbc22d573b61fd951c9e933bcd8d7b2732 100644
(file)
--- a/
src/compiler/nir/nir_lower_atomics_to_ssbo.c
+++ b/
src/compiler/nir/nir_lower_atomics_to_ssbo.c
@@
-27,6
+27,10
@@
#include "nir.h"
#include "nir_builder.h"
+#if defined(_WIN32) && !defined(snprintf)
+#define snprintf _snprintf
+#endif
+
/*
* Remap atomic counters to SSBOs. Atomic counters get remapped to
* SSBO binding points [0..ssbo_offset) and the original SSBOs are