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"
|
#include "nir_opcodes.h"
|
||||||
|
|
||||||
|
#if defined(_WIN32) && !defined(snprintf)
|
||||||
|
#define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@@ -31,10 +31,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <inttypes.h> /* for PRIx64 macro */
|
#include <inttypes.h> /* for PRIx64 macro */
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(snprintf)
|
|
||||||
#define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_tabs(unsigned num_tabs, FILE *fp)
|
print_tabs(unsigned num_tabs, FILE *fp)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user