diff --git a/apps/plugin.c b/apps/plugin.c index 84d030e1de..b4239bb8d9 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -44,7 +44,7 @@ #include "mp3data.h" #include "powermgmt.h" #include "system.h" -#if (CONFIG_HWCODEC == MASNONE) +#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) #include "pcm_playback.h" #endif @@ -271,7 +271,7 @@ static const struct plugin_api rockbox_api = { #if CONFIG_KEYPAD == IRIVER_H100_PAD button_hold, #endif -#if (CONFIG_HWCODEC == MASNONE) +#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) pcm_play_data, pcm_play_stop, pcm_is_playing, diff --git a/apps/plugin.h b/apps/plugin.h index 88b9953913..3755018d6d 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -317,7 +317,7 @@ struct plugin_api { #if CONFIG_KEYPAD == IRIVER_H100_PAD bool (*button_hold)(void); #endif -#if (CONFIG_HWCODEC == MASNONE) +#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) void (*pcm_play_data)(const unsigned char *start, int size, void (*get_more)(unsigned char** start, long*size)); void (*pcm_play_stop)(void);