Skip to content

Commit a28e8bd

Browse files
committed
Fix clang 24 build
1 parent 42ba985 commit a28e8bd

13 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎cpp2rust/converter/converter_lib.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <clang/AST/Mangle.h>
1111
#include <clang/AST/ParentMapContext.h>
1212
#include <clang/Basic/SourceManager.h>
13+
#include <clang/Basic/Version.h>
1314
#include <clang/Lex/Lexer.h>
1415
#include <clang/Sema/Initialization.h>
1516
#include <clang/Sema/Sema.h>

‎rules/cstring/src.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2022-present INESC-ID.
22
// Distributed under the MIT license that can be found in the LICENSE file.
33

4+
#undef _GNU_SOURCE
45
#define _GNU_SOURCE
56
#include <string.h>
67
#include <strings.h>

‎rules/eventfd/src.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#undef _GNU_SOURCE
12
#define _GNU_SOURCE
23

34
#ifdef __linux__

‎rules/fcntl/src.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2022-present INESC-ID.
22
// Distributed under the MIT license that can be found in the LICENSE file.
33

4+
#undef _GNU_SOURCE
45
#define _GNU_SOURCE
56
#include <fcntl.h>
67

‎rules/netdb/src.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2022-present INESC-ID.
22
// Distributed under the MIT license that can be found in the LICENSE file.
33

4+
#undef _GNU_SOURCE
45
#define _GNU_SOURCE
56
#include <netdb.h>
67

‎rules/pwd/src.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2022-present INESC-ID.
22
// Distributed under the MIT license that can be found in the LICENSE file.
33

4+
#undef _GNU_SOURCE
45
#define _GNU_SOURCE
56
#include <pwd.h>
67

‎rules/signal/src.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2022-present INESC-ID.
22
// Distributed under the MIT license that can be found in the LICENSE file.
33

4+
#undef _GNU_SOURCE
45
#define _GNU_SOURCE
56
#include <signal.h>
67

‎rules/socket/src.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#undef _GNU_SOURCE
12
#define _GNU_SOURCE
23
#include <sys/types.h>
34
#include <sys/socket.h>

‎rules/stat/src.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2022-present INESC-ID.
22
// Distributed under the MIT license that can be found in the LICENSE file.
33

4+
#undef _GNU_SOURCE
45
#define _GNU_SOURCE
56
#include <sys/stat.h>
67

‎rules/stdio/src.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2022-present INESC-ID.
22
// Distributed under the MIT license that can be found in the LICENSE file.
33

4+
#undef _GNU_SOURCE
45
#define _GNU_SOURCE
56
#include <stdio.h>
67

0 commit comments

Comments
 (0)