aboutsummaryrefslogtreecommitdiff
path: root/textproc/libwps
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-08-02 18:01:10 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-08-02 18:01:10 +0000
commit201fec6447d4e3ef7a1c45b22b345799d68c8127 (patch)
tree3264814b2be8aa2832d20c58c849ea85828fcb12 /textproc/libwps
parente00701395c4f39f1a7bef3e85010387f067bca1e (diff)
Notes
Diffstat (limited to 'textproc/libwps')
-rw-r--r--textproc/libwps/files/patch-src_lib_libwps__internal.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/textproc/libwps/files/patch-src_lib_libwps__internal.h b/textproc/libwps/files/patch-src_lib_libwps__internal.h
new file mode 100644
index 000000000000..c050386a16a8
--- /dev/null
+++ b/textproc/libwps/files/patch-src_lib_libwps__internal.h
@@ -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