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

@@ -21,14 +21,12 @@
#define COMPILER_H 1
/* Prevent/force inlining. Used to improve performance. */
#undef __noinline
#undef __always_inline
#ifdef HAVE___ATTRIBUTE__
# define __noinline __attribute__((noinline))
# define __always_inline __attribute__((always_inline))
# define noinline __attribute__((noinline))
# define always_inline __attribute__((always_inline))
#else
# define __noinline
# define __always_inline
# define noinline
# define always_inline
#endif
/* Branch prediction information for the compiler. */