summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJules Maselbas <jmaselbas@zdiv.net>2024-01-25 15:14:40 +0100
committerRich Felker <dalias@aerifal.cx>2024-02-03 20:04:42 -0500
commit8b7048680731707d135ea231f81eb3eaf52378ee (patch)
tree257a11ec1b025410688185aab868bc63294ea748 /include
parent407aea628af8c81d9e3f5a068568f2217db71bba (diff)
downloadmusl-8b7048680731707d135ea231f81eb3eaf52378ee.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/stdc-predef.h3
1 files changed, 3 insertions, 0 deletions
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