blob: 8cc39ee9fc585b405042a8dfb2a1286eeb388293 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
From 6be17375f9142017d34bd0b577cdf4e91225c135 Mon Sep 17 00:00:00 2001
From: Paul Zander <negril.nx+gentoo@gmail.com>
Date: Fri, 22 Nov 2024 19:46:05 +0100
Subject: [PATCH] don't include <ciso646> with c++17
[179/825] Building CXX object absl/log/CMakeFiles/log_globals.dir/globals.cc.o
In file included from
/var/tmp/paludis/dev-cpp-abseil-cpp-20240722.0/work/abseil-cpp-20240722.0/absl/hash/internal/hash.h:33,
from
/var/tmp/paludis/dev-cpp-abseil-cpp-20240722.0/work/abseil-cpp-20240722.0/absl/hash/hash.h:85,
from
/var/tmp/paludis/dev-cpp-abseil-cpp-20240722.0/work/abseil-cpp-20240722.0/absl/log/globals.cc:29:
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/ciso646:46:4: warning:
#warning "<ciso646> is deprecated in C++17, use <version> to detect
implementation-specific macros" [-Wcpp]
46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect
implementation-specific macros"
| ^~~~~~~
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
diff --git a/absl/hash/internal/hash.h b/absl/hash/internal/hash.h
index 03bf183..3222be3 100644
--- a/absl/hash/internal/hash.h
+++ b/absl/hash/internal/hash.h
@@ -27,7 +27,7 @@
#include "absl/base/config.h"
// For feature testing and determining which headers can be included.
-#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 202002L
+#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L
#include <version>
#else
#include <ciso646>
--
2.47.0
|