From 468edbbc7c1ea4b5de0036a732fac4ef0bee23ba Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 23 Sep 2008 09:59:06 +0000 Subject: Use the correct #ifdefs for the added kernel objects. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18575 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 409108d2d9..20724f8706 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -764,11 +764,13 @@ struct plugin_api { #endif void (*thread_thaw)(struct thread_entry *thread); - -#if (CONFIG_CODEC == SWCODEC) + +#ifdef HAVE_SEMAPHORE_OBJECTS void (*semaphore_init)(struct semaphore *s, int max, int start); void (*semaphore_wait)(struct semaphore *s); void (*semaphore_release)(struct semaphore *s); +#endif +#ifdef HAVE_EVENT_OBJECTS void (*event_init)(struct event *e, unsigned int flags); void (*event_wait)(struct event *e, unsigned int for_state); void (*event_set_state)(struct event *e, unsigned int state); -- cgit v1.2.3