view src/mesa-2-ucrt.patch @ 6255:488e12ffbd29

mesa: update to v22.1.1 * src/mesa.mk: update to v22.1.1, add update rule * src/mesa-2-ucrt.patch: update patch
author John Donoghue <john.donoghue@ieee.org>
date Sat, 04 Jun 2022 06:55:44 -0400
parents 8b434abc6fc1
children
line wrap: on
line source

From a3b60fc23f2968e2d22c8d46baf29d4cd90b0d5c Mon Sep 17 00:00:00 2001
From: Jeremy Drake <github@jdrake.com>
Date: Sat, 16 Oct 2021 16:50:46 -0700
Subject: [PATCH] mesa: fixes for UCRT.

--- mesa-21.2.4/src/compiler/nir/nir.h.orig	2021-10-14 12:59:05.367845000 -0700
+++ mesa-21.2.4/src/compiler/nir/nir.h	2021-10-16 15:55:09.881268400 -0700
@@ -54,7 +54,7 @@
 
 #include "nir_opcodes.h"
 
-#if defined(_WIN32) && !defined(snprintf)
+#if defined(_WIN32) && !defined(snprintf) && !defined(_UCRT)
 #define snprintf _snprintf
 #endif