diff options
author | L. E. Segovia <amy@centricular.com> | 2024-01-29 10:56:32 +0000 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2024-01-29 11:07:20 +0000 |
commit | dd28f6eddf91a928a70b5a602b9a5847157159f3 (patch) | |
tree | dc194d3a2ff2d824aced929fe2c8834ea325a4c0 /orc-test | |
parent | 7cddf6da1ae705fead5d44130c529e1e80ae3600 (diff) |
testsuite: Fix build with standards compliant Clang
As per https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html, the correct
macro to be used is `__asm__`. While at it, also ensure that Clang is
recognised with the correct macro.
Fixes #59
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/159>
Diffstat (limited to 'orc-test')
-rw-r--r-- | orc-test/orctest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c index b785c67..84905f0 100644 --- a/orc-test/orctest.c +++ b/orc-test/orctest.c @@ -64,8 +64,8 @@ orc_test_init (void) // outputs from, floating-point instructions are flushed to zero. // Otherwise, outputs from neon float ops do not match emulated code. int64_t fpcr_value = 0x1000000; -#ifdef __GNUC__ - asm("msr FPCR, %0" : : "r" (fpcr_value)); +#if defined(__GNUC__) || defined(__clang__) + __asm__("msr FPCR, %0" : : "r" (fpcr_value)); #elif _MSC_VER __asm msr FPCR, fpcr_value #else |