From 0760c5302d12dbb358cabd81c330c3ce20b5151c Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Fri, 13 Sep 2024 20:02:41 +0300 Subject: [PATCH] Move __has_builtin fallback to ass_compat.h This ensures that it's present and usable everywhere. --- libass/ass_compat.h | 4 ++++ libass/ass_utils.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libass/ass_compat.h b/libass/ass_compat.h index 52ac282a0..cdb58ce84 100644 --- libass/ass_compat.h +++ libass/ass_compat.h @@ -19,6 +19,10 @@ #ifndef LIBASS_COMPAT_H #define LIBASS_COMPAT_H +#ifndef __has_builtin +#define __has_builtin(x) 0 +#endif + #ifdef _MSC_VER #define _CRT_NONSTDC_NO_DEPRECATE #define _CRT_SECURE_NO_WARNINGS