From ea5ebe0809fb31b9f125ac0689f706cc5f3f078f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 30 Apr 2023 17:06:02 +0300 Subject: rename to kmi --- include/apos/builtin.h | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 include/apos/builtin.h (limited to 'include/apos/builtin.h') diff --git a/include/apos/builtin.h b/include/apos/builtin.h deleted file mode 100644 index 6d7039e..0000000 --- a/include/apos/builtin.h +++ /dev/null @@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: GPL-3.0-or-later */ -/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ - -#ifndef APOS_BUILTIN_H -#define APOS_BUILTIN_H - -/** - * @file builtin.h - * Defines __has_builtin, if the compiler doesn't support it. - * - * Technically we only support clang and gcc at the moment, and they both - * support __has_builtin, but if some interesting compiler comes along then - * we'll be golden. - */ - -/** - * Check whether compiler supports the builtin. - * Note that this definition is only for when the compiler doesn't provide it - * automatically. - * - * @param x Base name of builtin to check for. - * @return \c 0 when not supported, non-zero when supported. - */ -#ifndef __has_builtin -#define __has_builtin(x) (0) -#endif - -#endif /* APOS_BUILTIN_H */ -- cgit v1.3