FreeBSD Bugzilla – Attachment 235882 Details for
Bug 265819
devel/xxhash: fix static_assert bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Replace static_assert by _Static_assert in xxhash.h
xxhash-fix_static_assert.patch (text/plain), 873 bytes, created by
Thierry Dussuet
on 2022-08-13 17:16:32 UTC
(
hide
)
Description:
Replace static_assert by _Static_assert in xxhash.h
Filename:
MIME Type:
Creator:
Thierry Dussuet
Created:
2022-08-13 17:16:32 UTC
Size:
873 bytes
patch
obsolete
>diff --git a/devel/xxhash/files/patch-xxhash.h b/devel/xxhash/files/patch-xxhash.h >new file mode 100644 >index 000000000000..d005011ddc4f >--- /dev/null >+++ b/devel/xxhash/files/patch-xxhash.h >@@ -0,0 +1,12 @@ >+--- xxhash.h.orig 2022-08-13 18:58:45.930785000 +0200 >++++ xxhash.h 2022-08-13 18:59:08.416809000 +0200 >+@@ -1546,8 +1546,7 @@ >+ /* note: use after variable declarations */ >+ #ifndef XXH_STATIC_ASSERT >+ # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */ >+-# include <assert.h> >+-# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0) >++# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { _Static_assert((c),m); } while(0) >+ # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* C++11 */ >+ # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0) >+ # else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265819
: 235882