aboutsummaryrefslogtreecommitdiff
path: root/www/qt6-webengine/files/patch-src_3rdparty_chromium_third__party_pdfium_third__party_base_compiler__specific.h
blob: 0479b60ec02a413a8c0a0806d12478b4a23b3266 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/3rdparty/chromium/third_party/pdfium/third_party/base/compiler_specific.h.orig	2023-05-31 08:12:17 UTC
+++ src/3rdparty/chromium/third_party/pdfium/third_party/base/compiler_specific.h
@@ -17,7 +17,7 @@
 // Annotate a function indicating it should not be inlined.
 // Use like:
 //   NOINLINE void DoStuff() { ... }
-#if defined(__clang__) && HAS_ATTRIBUTE(noinline)
+#if defined(__clang__) && (__clang_major__ >= 15) && HAS_ATTRIBUTE(noinline)
 #define NOINLINE [[clang::noinline]]
 #elif defined(COMPILER_GCC) && HAS_ATTRIBUTE(noinline)
 #define NOINLINE __attribute__((noinline))