summaryrefslogtreecommitdiffstats
path: root/libass/ass_utils.c
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2022-02-12 19:44:43 +0200
committerOleg Oshmyan <chortos@inbox.lv>2022-02-12 19:44:43 +0200
commitc4e2aadc88db638eed6090fa81a690235a11d3bd (patch)
treefbee5b3b45e9daef6c72b203c5f3b7bd69cd2c3f /libass/ass_utils.c
parentfe296cb5930d12b323237089bd2da42de1790ae0 (diff)
downloadlibass-c4e2aadc88db638eed6090fa81a690235a11d3bd.tar.bz2
libass-c4e2aadc88db638eed6090fa81a690235a11d3bd.tar.xz
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.
Diffstat (limited to 'libass/ass_utils.c')
-rw-r--r--libass/ass_utils.c2
1 files changed, 1 insertions, 1 deletions
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"