-
Notifications
You must be signed in to change notification settings - Fork 8k
check for __has_attribute(x) and/or clang instead of only basing existence on ZEND_GCC_VERSION #21622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
check for __has_attribute(x) and/or clang instead of only basing existence on ZEND_GCC_VERSION #21622
Changes from 2 commits
99c5aa3
778bdd5
496fdb5
82b5e46
4341ce5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,7 +166,7 @@ typedef union _align_test { | |
| zend_long lng; | ||
| } align_test; | ||
|
|
||
| #if ZEND_GCC_VERSION >= 2000 | ||
| #if ZEND_GCC_VERSION >= 2000 || defined(__clang__) | ||
|
||
| # define PLATFORM_ALIGNMENT (__alignof__(align_test) < 8 ? 8 : __alignof__(align_test)) | ||
| #else | ||
| # define PLATFORM_ALIGNMENT (sizeof(align_test)) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.