X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fcommon%2Fapi.h;h=2b72ec5a485cd028cbe0c8f217047f61b84e1754;hp=14033596885bce51b77df4e5c958eb7434a6428e;hb=c278ffc739374fbcc6d2fb35eca26b57da4c6447;hpb=f5ab766ee2c8300cb00ca5878b1cb464f960a66d diff --git a/tests/common/api.h b/tests/common/api.h index 1403359..2b72ec5 100644 --- a/tests/common/api.h +++ b/tests/common/api.h @@ -1,9 +1,6 @@ #ifndef _INCLUDE_API_H #define _INCLUDE_API_H -#define _GNU_SOURCE -#include "config.h" - /* * common.h: Common Linux kernel-isms. * @@ -268,7 +265,7 @@ long long get_microseconds(void) struct { \ __typeof__(type) v \ __attribute__((__aligned__(CAA_CACHE_LINE_SIZE))); \ - } __per_thread_##name[NR_THREADS]; + } __per_thread_##name[NR_THREADS] #define DECLARE_PER_THREAD(type, name) extern DEFINE_PER_THREAD(type, name) #define per_thread(name, thread) __per_thread_##name[thread].v