diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2022-03-23 17:55:35 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-03-23 18:36:52 +0100 |
commit | 85ffe83ad7b6fb4dae1c25979898044ad1765b2e (patch) | |
tree | 89a01a205cb1b5a9de1457af4570c9c06d0d8582 /gcc | |
parent | 35ca685200830626e5abd623f65a850649beace2 (diff) | |
download | gcc-85ffe83ad7b6fb4dae1c25979898044ad1765b2e.zip gcc-85ffe83ad7b6fb4dae1c25979898044ad1765b2e.tar.gz gcc-85ffe83ad7b6fb4dae1c25979898044ad1765b2e.tar.bz2 |
Fix '#include <algorithm>' [#159]
... recently introduced in #1044 commit 35ca685200830626e5abd623f65a850649beace2
"macros: Add base functions to check for follow-set ambiguities".
GCC doesn't like that:
In file included from [...]
./mm_malloc.h:42:12: error: attempt to use poisoned "malloc"
return malloc (__size);
^
See commit e7b3f654f2ab0400c95c0517387a9ad645a5c4cd, for example.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 1d1b624..9e3a631 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -20,9 +20,9 @@ along with GCC; see the file COPYING3. If not see /* DO NOT INCLUDE ANYWHERE - this is automatically included with rust-parse.h * This is also the reason why there are no include guards. */ +#define INCLUDE_ALGORITHM #include "rust-diagnostics.h" #include "util/rust-make-unique.h" -#include <algorithm> namespace Rust { // Left binding powers of operations. |