svn commit: r447132 - head/textproc/libwps/files
Jung-uk Kim
jkim at FreeBSD.org
Wed Aug 2 18:01:11 UTC 2017
Author: jkim
Date: Wed Aug 2 18:01:10 2017
New Revision: 447132
URL: https://svnweb.freebsd.org/changeset/ports/447132
Log:
Fix build with Clang 3.4.
PR: 221173
Added:
head/textproc/libwps/files/
head/textproc/libwps/files/patch-src_lib_libwps__internal.h (contents, props changed)
Added: head/textproc/libwps/files/patch-src_lib_libwps__internal.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/libwps/files/patch-src_lib_libwps__internal.h Wed Aug 2 18:01:10 2017 (r447132)
@@ -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
More information about the svn-ports-all
mailing list