summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2020-09-02 10:20:18 +0200
committerJoel Rosdahl <joel@rosdahl.net>2020-09-02 10:20:18 +0200
commit144df7798b1536da7625e3c7100f14e2c23ba427 (patch)
tree00adb2f979f2e1ac22909048e169b1a50026851b
parentc7c34057718366fd91a6804b297b61c4396a9814 (diff)
downloadccache-144df7798b1536da7625e3c7100f14e2c23ba427.tar.gz
Ignore Clang error about setting _FILE_OFFSET_BITS
-rw-r--r--src/system.h9
1 files changed, 9 insertions, 0 deletions
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 <sys/file.h>
#ifdef HAVE_SYS_MMAN_H