From 144df7798b1536da7625e3c7100f14e2c23ba427 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Wed, 2 Sep 2020 10:20:18 +0200 Subject: Ignore Clang error about setting _FILE_OFFSET_BITS --- src/system.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/system.h b/src/system.h index 1e03c99d..86d7f304 100644 --- a/src/system.h +++ b/src/system.h @@ -19,9 +19,18 @@ #include "config.h" +#ifdef __clang__ +#pragma clang diagnostic push +#if __has_warning("-Wreserved-id-macro") +#pragma clang diagnostic ignored "-Wreserved-id-macro" +#endif +#endif #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif +#ifdef __clang__ +#pragma clang diagnostic pop +#endif #include #ifdef HAVE_SYS_MMAN_H -- cgit v1.2.1