mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 06:50:24 +01:00
nir: Fix missing snprintf symbol on Windows.
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.
This commit is contained in:
parent
27ad060c6e
commit
dab6a2dfd9
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue