nir: fix (hopefully) windows build
Fixes: 53aa109b
("nir: add pass to lower atomic counters to SSBO")
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
@@ -47,6 +47,10 @@
|
||||
|
||||
#include "nir_opcodes.h"
|
||||
|
||||
#if defined(_WIN32) && !defined(snprintf)
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@@ -31,10 +31,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h> /* for PRIx64 macro */
|
||||
|
||||
#if defined(_WIN32) && !defined(snprintf)
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
static void
|
||||
print_tabs(unsigned num_tabs, FILE *fp)
|
||||
{
|
||||
|
Reference in New Issue
Block a user