aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-08-02 18:01:03 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-08-02 18:01:03 +0000
commite00701395c4f39f1a7bef3e85010387f067bca1e (patch)
treec8ac6aa8ebb44136d4c0b0421e128a2cc0baedaf /textproc
parent96c76d5ac13d8b42e7302381e8ab9698b1dd8016 (diff)
downloadports-e00701395c4f39f1a7bef3e85010387f067bca1e.tar.gz
ports-e00701395c4f39f1a7bef3e85010387f067bca1e.zip
Fix build with Clang 3.4.
PR: 221173
Notes
Notes: svn path=/head/; revision=447131
Diffstat (limited to 'textproc')
-rw-r--r--textproc/libstaroffice/files/patch-src_lib_libstaroffice__internal.hxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/textproc/libstaroffice/files/patch-src_lib_libstaroffice__internal.hxx b/textproc/libstaroffice/files/patch-src_lib_libstaroffice__internal.hxx
new file mode 100644
index 000000000000..0e67db91beaa
--- /dev/null
+++ b/textproc/libstaroffice/files/patch-src_lib_libstaroffice__internal.hxx
@@ -0,0 +1,17 @@
+--- src/lib/libstaroffice_internal.hxx.orig 2017-07-03 08:05:09 UTC
++++ src/lib/libstaroffice_internal.hxx
+@@ -113,9 +113,11 @@ struct STOFF_shared_ptr_noop_deleter {
+ /** fall through attributes */
+ #define STOFF_FALLTHROUGH
+ #if defined(__clang__)
+-# if defined(__has_cpp_attribute) && __has_cpp_attribute(clang::fallthrough)
+-# undef STOFF_FALLTHROUGH
+-# define STOFF_FALLTHROUGH [[clang::fallthrough]]
++# if defined(__has_cpp_attribute)
++# if __has_cpp_attribute(clang::fallthrough)
++# undef STOFF_FALLTHROUGH
++# define STOFF_FALLTHROUGH [[clang::fallthrough]]
++# endif
+ # endif
+ #elif defined(__GNUC__)
+ # if __GNUC__>=7