summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h')
-rw-r--r--libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h b/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h
index a6e1a6f76..c9669f2d3 100644
--- a/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h
+++ b/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h
@@ -12,11 +12,7 @@
#include <features.h>
#ifndef PT_EI
-# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
-# define PT_EI static inline __attribute__((always_inline))
-# else
-# define PT_EI extern inline __attribute__((always_inline))
-# endif
+# define PT_EI __extern_always_inline
#endif
static inline int
@@ -34,10 +30,6 @@ _test_and_set (int *p, int v)
return result;
}
-#ifndef PT_EI
-# define PT_EI extern inline
-#endif
-
extern long int testandset (int *spinlock);
extern int __compare_and_swap (long int *p, long int oldval, long int newval);