Fix build with Clang 3.4.
PR: 221173
This commit is contained in:
parent
e00701395c
commit
201fec6447
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447132
1 changed files with 17 additions and 0 deletions
17
textproc/libwps/files/patch-src_lib_libwps__internal.h
Normal file
17
textproc/libwps/files/patch-src_lib_libwps__internal.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
--- src/lib/libwps_internal.h.orig 2017-07-03 07:52:38 UTC
|
||||
+++ src/lib/libwps_internal.h
|
||||
@@ -86,9 +86,11 @@ struct WPS_shared_ptr_noop_deleter
|
||||
/** fall through attributes */
|
||||
#define WPS_FALLTHROUGH
|
||||
#if defined(__clang__)
|
||||
-# if defined(__has_cpp_attribute) && __has_cpp_attribute(clang::fallthrough)
|
||||
-# undef WPS_FALLTHROUGH
|
||||
-# define WPS_FALLTHROUGH [[clang::fallthrough]]
|
||||
+# if defined(__has_cpp_attribute)
|
||||
+# if __has_cpp_attribute(clang::fallthrough)
|
||||
+# undef WPS_FALLTHROUGH
|
||||
+# define WPS_FALLTHROUGH [[clang::fallthrough]]
|
||||
+# endif
|
||||
# endif
|
||||
#elif defined(__GNUC__)
|
||||
# if __GNUC__>=7
|
Loading…
Reference in a new issue