Avoid ifdef.

This commit is contained in:
Themaister 2012-05-22 15:34:53 +02:00
parent 6d0c569f0a
commit 2b712f5f46
2 changed files with 6 additions and 5 deletions

View File

@ -202,8 +202,6 @@ static void set_alias_power(struct snr_result *res, unsigned freq, double power)
}
}
// This doesn't yet take account for slight phase distortions,
// so reported SNR is lower than reality.
static void calculate_snr(struct snr_result *res,
unsigned in_rate, unsigned max_rate,
const float *resamp, complex double *butterfly_buf, size_t samples)

View File

@ -1165,13 +1165,19 @@ static void deinit_recording(void)
static void init_msg_queue(void)
{
if (g_extern.msg_queue)
return;
rarch_assert(g_extern.msg_queue = msg_queue_new(8));
}
static void deinit_msg_queue(void)
{
if (g_extern.msg_queue)
{
msg_queue_free(g_extern.msg_queue);
g_extern.msg_queue = NULL;
}
}
#ifdef HAVE_XML
@ -2328,10 +2334,7 @@ int rarch_main_init(int argc, char *argv[])
goto error;
init_system_av_info();
#ifndef RARCH_CONSOLE
//we have to init the message queue way in advance for console ports
init_msg_queue();
#endif
if (!g_extern.sram_load_disable)
load_save_files();