Rename __noinline/__always_inline to prevent clash with headers.

With this change noinline can be used in ldpreload.h.
This commit is contained in:
Simon Ruderich
2013-06-10 14:55:13 +02:00
parent 488159627f
commit b75b0ec399
4 changed files with 14 additions and 20 deletions

View File

@@ -30,12 +30,7 @@
#include <dlfcn.h>
#include <errno.h>
static void *dlsym_function(char const *name)
#ifdef HAVE___ATTRIBUTE__
__attribute__((noinline))
#endif
;
static void *dlsym_function(char const *name) noinline;
/* Load the function name using dlsym() and return it. Terminate program on
* failure. Split in function and macro to reduce code inserted into the
* function using the macro. */