From 17e5399d3dc78f70a092fe2563e4fff59241bde2 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Tue, 7 Sep 2010 14:09:06 +0000 Subject: buflib_get_data(): static inline ensures it will be inlined git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28018 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/buflib.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'apps/plugins/lib/buflib.h') diff --git a/apps/plugins/lib/buflib.h b/apps/plugins/lib/buflib.h index d4ef4af9ff..47ad57f526 100644 --- a/apps/plugins/lib/buflib.h +++ b/apps/plugins/lib/buflib.h @@ -51,12 +51,7 @@ void buflib_buffer_in(struct buflib_context *ctx, int size); -/* always_inline is due to this not getting inlined when not optimizing, which - * leads to an unresolved reference since it doesn't exist as a non-inline - * function - */ -extern inline __attribute__((always_inline)) -void* buflib_get_data(struct buflib_context *context, int handle) +static inline void* buflib_get_data(struct buflib_context *context, int handle) { return (void*)(context->handle_table[-handle].ptr); } -- cgit v1.2.3