Skip to content

Commit 85ffe83

Browse files
committed
Fix '#include <algorithm>' [#159]
... recently introduced in #1044 commit 35ca685 "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 e7b3f65, for example.
1 parent 35ca685 commit 85ffe83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/rust/parse/rust-parse-impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ along with GCC; see the file COPYING3. If not see
2020
/* DO NOT INCLUDE ANYWHERE - this is automatically included with rust-parse.h
2121
* This is also the reason why there are no include guards. */
2222

23+
#define INCLUDE_ALGORITHM
2324
#include "rust-diagnostics.h"
2425
#include "util/rust-make-unique.h"
25-
#include <algorithm>
2626

2727
namespace Rust {
2828
// Left binding powers of operations.

0 commit comments

Comments
 (0)