diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index a83a9788e9..97c3087779 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -853,26 +853,6 @@ extern const struct plugin_api *rb; | |||
853 | enum plugin_status plugin_start(const void* parameter) | 853 | enum plugin_status plugin_start(const void* parameter) |
854 | NO_PROF_ATTR; | 854 | NO_PROF_ATTR; |
855 | 855 | ||
856 | /* Use this macro in plugins where gcc tries to optimize by calling | ||
857 | * these functions directly */ | ||
858 | #define MEM_FUNCTION_WRAPPERS \ | ||
859 | void *memcpy(void *dest, const void *src, size_t n) \ | ||
860 | { \ | ||
861 | return rb->memcpy(dest, src, n); \ | ||
862 | } \ | ||
863 | void *memset(void *dest, int c, size_t n) \ | ||
864 | { \ | ||
865 | return rb->memset(dest, c, n); \ | ||
866 | } \ | ||
867 | void *memmove(void *dest, const void *src, size_t n) \ | ||
868 | { \ | ||
869 | return rb->memmove(dest, src, n); \ | ||
870 | } \ | ||
871 | int memcmp(const void *s1, const void *s2, size_t n) \ | ||
872 | { \ | ||
873 | return rb->memcmp(s1, s2, n); \ | ||
874 | } | ||
875 | |||
876 | #undef CACHE_FUNCTION_WRAPPERS | 856 | #undef CACHE_FUNCTION_WRAPPERS |
877 | #ifdef CACHE_FUNCTIONS_AS_CALL | 857 | #ifdef CACHE_FUNCTIONS_AS_CALL |
878 | #define CACHE_FUNCTION_WRAPPERS \ | 858 | #define CACHE_FUNCTION_WRAPPERS \ |