From 8b7048680731707d135ea231f81eb3eaf52378ee Mon Sep 17 00:00:00 2001 From: Jules Maselbas Date: Thu, 25 Jan 2024 15:14:40 +0100 Subject: stdc-predef.h: prevent redefining __STDC_UTF_{16,32}__ macros Undefine any previous __STDC_UTF_{16,32}__ macros before defining them to prenvent any warnings of redefining macros. This happens as a result of some compiler versions defining the macros themselves. --- include/stdc-predef.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/stdc-predef.h b/include/stdc-predef.h index af1a2799..5ccd884d 100644 --- a/include/stdc-predef.h +++ b/include/stdc-predef.h @@ -7,7 +7,10 @@ #define __STDC_IEC_559__ 1 #endif +#undef __STDC_UTF_16__ #define __STDC_UTF_16__ 1 + +#undef __STDC_UTF_32__ #define __STDC_UTF_32__ 1 #endif -- cgit v1.2.1