From 6d2379857b6fccc1cadeb81acdcee295b081b0cb Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 7 Nov 2018 17:57:02 +0000 Subject: [PATCH] xf86atomic: #undef internal define Thanks to the #error just above, any file including this header can only see one state for this macro: defined, with the value `1`. Let's just #undef it once we're done using it in here so that other files don't misconstrue any meaning to it. Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- xf86atomic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xf86atomic.h b/xf86atomic.h index 2d733bd5..e268d274 100644 --- a/xf86atomic.h +++ b/xf86atomic.h @@ -101,6 +101,8 @@ typedef struct { LIBDRM_ATOMIC_TYPE atomic; } atomic_t; #error libdrm requires atomic operations, please define them for your CPU/compiler. #endif +#undef HAS_ATOMIC_OPS + static inline int atomic_add_unless(atomic_t *v, int add, int unless) { int c, old;