From cd3d9986f40fd4e605ac2e8168512065439173e2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Oct 2022 20:12:13 -0400 Subject: Split up public API header --- src/attributes.h | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/attributes.h (limited to 'src/attributes.h') diff --git a/src/attributes.h b/src/attributes.h deleted file mode 100644 index 11c699f3..00000000 --- a/src/attributes.h +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2019-2023 David Robillard -// SPDX-License-Identifier: ISC - -#ifndef SERD_SRC_ATTRIBUTES_H -#define SERD_SRC_ATTRIBUTES_H - -#if defined(__GNUC__) -# define SERD_LOG_FUNC(fmt, arg1) __attribute__((format(printf, fmt, arg1))) -#else -# define SERD_LOG_FUNC(fmt, arg1) -#endif - -#ifdef __GNUC__ -# define SERD_MALLOC_FUNC __attribute__((malloc)) -#else -# define SERD_MALLOC_FUNC -#endif - -#ifdef __GNUC__ -# define SERD_NODISCARD __attribute__((warn_unused_result)) -#else -# define SERD_NODISCARD -#endif - -#endif // SERD_SRC_ATTRIBUTES_H -- cgit v1.2.1