Skip to content
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

Fix build on Clang/ARM (r161757). #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -1363,8 +1363,18 @@ qcms_transform* qcms_transform_create(
}

#if defined(__GNUC__) && !defined(__x86_64__) && !defined(__amd64__)
#if !defined(__has_attribute)
/* Assume that the compiler supports the provided attribute. */
#define __has_attribute(x) 1
#endif
#if __has_attribute(__force_align_arg_pointer__)
/* we need this to avoid crashes when gcc assumes the stack is 128bit aligned */
__attribute__((__force_align_arg_pointer__))
#else
/* Clang/ARM (r161757) does not support the __force_align_arg_pointer__
* attribute. Hopefully this is not an issue on this platform.
*/
#endif
#endif
void qcms_transform_data(qcms_transform *transform, void *src, void *dest, size_t length)
{
Expand Down