diff options
author | jkim <jkim@FreeBSD.org> | 2017-08-03 02:01:03 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2017-08-03 02:01:03 +0800 |
commit | 77f88a4f4adefd3835b3784aba68832901453c00 (patch) | |
tree | c8ac6aa8ebb44136d4c0b0421e128a2cc0baedaf /textproc | |
parent | 02e2b016fbd84b049b7dbcd4b087ebd8a03f6f1c (diff) | |
download | freebsd-ports-gnome-77f88a4f4adefd3835b3784aba68832901453c00.tar.gz freebsd-ports-gnome-77f88a4f4adefd3835b3784aba68832901453c00.tar.zst freebsd-ports-gnome-77f88a4f4adefd3835b3784aba68832901453c00.zip |
Fix build with Clang 3.4.
PR: 221173
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/libstaroffice/files/patch-src_lib_libstaroffice__internal.hxx | 17 |
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 |