diff mbox

[libdrm,13/13] xf86atomic: fix -Wundef error

Message ID 20180126164552.5473-13-eric.engestrom@imgtec.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Engestrom Jan. 26, 2018, 4:45 p.m. UTC
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 xf86atomic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Emil Velikov Jan. 26, 2018, 5:53 p.m. UTC | #1
On 26 January 2018 at 16:45, Eric Engestrom <eric.engestrom@imgtec.com> wrote:
> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
> ---
>  xf86atomic.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xf86atomic.h b/xf86atomic.h
> index 922b37da62517bc1ee2f..70e918663c3b015f2881 100644
> --- a/xf86atomic.h
> +++ b/xf86atomic.h
> @@ -101,7 +101,7 @@ typedef struct { LIBDRM_ATOMIC_TYPE atomic; } atomic_t;
>
>  #endif
>
> -#if ! HAS_ATOMIC_OPS
> +#if !defined(HAS_ATOMIC_OPS)
>  #error libdrm requires atomic operations, please define them for your CPU/compiler.
>  #endif
>
The series is
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>

Unrelated: I've been wondering if/how many libkms users there are and
if we could nuke it.
It will drop a fair bit of build magic ;-)

-Emil
diff mbox

Patch

diff --git a/xf86atomic.h b/xf86atomic.h
index 922b37da62517bc1ee2f..70e918663c3b015f2881 100644
--- a/xf86atomic.h
+++ b/xf86atomic.h
@@ -101,7 +101,7 @@  typedef struct { LIBDRM_ATOMIC_TYPE atomic; } atomic_t;
 
 #endif
 
-#if ! HAS_ATOMIC_OPS
+#if !defined(HAS_ATOMIC_OPS)
 #error libdrm requires atomic operations, please define them for your CPU/compiler.
 #endif