aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libpng/patches/clang-18.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libs/libpng/patches/clang-18.patch')
-rw-r--r--contrib/libs/libpng/patches/clang-18.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/libs/libpng/patches/clang-18.patch b/contrib/libs/libpng/patches/clang-18.patch
new file mode 100644
index 0000000000..16f2cda4d9
--- /dev/null
+++ b/contrib/libs/libpng/patches/clang-18.patch
@@ -0,0 +1,26 @@
+commit 242ab0166e0b3ae29fd381117df005246a4e4eb9
+merge: 3c801a723b9f0eca043275e810f76c9286a7e0ab 6626b8f9a0ad0f481d29b698fbe42d5158b49aae
+author: robot-brewer
+date: 2024-11-11T09:16:28+03:00
+revision: 15280800
+
+ Release clang18 #3
+
+ https://github.com/yandex/toolchain-registry/releases/tag/clang18-v3
+
+ REVIEW: 7167654
+
+--- contrib/libs/libpng/pngpriv.h (3c801a723b9f0eca043275e810f76c9286a7e0ab)
++++ contrib/libs/libpng/pngpriv.h (242ab0166e0b3ae29fd381117df005246a4e4eb9)
+@@ -514,6 +514,11 @@
+ */
+ # include <float.h>
+
++#if defined(__clang__) && __clang_major__ >= 17
++#include <math.h>
++#define __MATH_H__
++#endif
++
+ # if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \
+ defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC)
+ /* We need to check that <math.h> hasn't already been included earlier