File ignore-intc-macros.patch of Package wasi-libc

From 640c0cfc19a96b099e0791824be5ef0105ce2084 Mon Sep 17 00:00:00 2001
From: Mike Hommey <mh@glandium.org>
Date: Wed, 29 Jan 2025 08:26:30 +0900
Subject: [PATCH] Adjust Makefile for LLVM trunk (20) as of 2025-01-26 (#564)

https://github.com/llvm/llvm-project/commit/33ad474c45e6d7a0de7bc75e15e27cf6cb9ff895
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 00dd3081..8a4f1a4a 100644
--- a/Makefile
+++ b/Makefile
@@ -890,6 +890,7 @@ check-symbols: $(STARTUP_FILES) libc
 	@# TODO: Filter out __GCC_(CON|DE)STRUCTIVE_SIZE that are new to clang 19.
 	@# TODO: Filter out __STDC_EMBED_* that are new to clang 19.
 	@# TODO: Filter out __*_NORM_MAX__ that are new to clang 19.
+	@# TODO: Filter out __INT*_C() that are new to clang 20.
 	@# TODO: clang defined __FLT_EVAL_METHOD__ until clang 15, so we force-undefine it
 	@# for older versions.
 	@# TODO: Undefine __wasm_mutable_globals__ and __wasm_sign_ext__, that are new to
@@ -940,6 +941,7 @@ check-symbols: $(STARTUP_FILES) libc
 	    | grep -v '^#define __OPTIMIZE__' \
 	    | grep -v '^#define assert' \
 	    | grep -v '^#define __NO_INLINE__' \
+	    | grep -v '^#define __U\?INT.*_C(' \
 	    > "$(SYSROOT_SHARE)/predefined-macros.txt"
 
 	# Check that the computed metadata matches the expected metadata.
openSUSE Build Service is sponsored by