From c4e2aadc88db638eed6090fa81a690235a11d3bd Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Sat, 12 Feb 2022 19:44:43 +0200 Subject: Consistently use x86 asm code if we've built it We detect x86 and enable building asm code in `configure`. However, before this commit, we don't actually use that code unless we detect x86 via the C compiler's predefined macros. We could check more macros to support more C compilers, but what we really want is to use the same trigger for both building and using this code. To that end, add ARCH_X86 to config.h iff x86 asm is being built. --- libass/ass_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass/ass_utils.c') diff --git a/libass/ass_utils.c b/libass/ass_utils.c index 57f6306..3248cf3 100644 --- a/libass/ass_utils.c +++ b/libass/ass_utils.c @@ -31,7 +31,7 @@ #include "ass_utils.h" #include "ass_string.h" -#if (defined(__i386__) || defined(__x86_64__)) && CONFIG_ASM +#if CONFIG_ASM && ARCH_X86 #include "x86/cpuid.h" -- cgit v1.2.3