From 74c87465950d7373fae090a575332fa66d9b7047 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 22 Jan 2012 20:33:37 +0100 Subject: Don't filter out -O for sims. It's not useful as it means we test code at a different -O level than we run it at. Fixes build errors caused by gcc 4.3. Fix some warnings the change would introduce as well. Change-Id: Id9ff31dc08694b0bfc5272f5e690c41f7918ed22 --- apps/plugin.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 918206ab69..d83f6f4845 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -37,6 +37,14 @@ #include "string-extra.h" #include "gcc_extensions.h" + + +/* on some platforms strcmp() seems to be a tricky define which + * breaks if we write down strcmp's prototype */ +#undef strcmp +#undef strncmp +#undef strchr + char* strncpy(char *, const char *, size_t); void* plugin_get_buffer(size_t *buffer_size); @@ -119,12 +127,6 @@ void* plugin_get_buffer(size_t *buffer_size); #endif -/* on some platforms strcmp() seems to be a tricky define which - * breaks if we write down strcmp's prototype */ -#undef strcmp -#undef strncmp -#undef strchr - #ifdef PLUGIN #if defined(DEBUG) || defined(SIMULATOR) -- cgit v1.2.3