Skip to content

Commit ba19b1d

Browse files
dcharkescommit-bot@chromium.org
authored andcommitted
[vm/ffi] dart_api_dl.c fix MacOS build
Fixes "redefinition of typedef '...' is a C11 feature" on Mac bots. Change-Id: I9f1114279106fa83ca491e069564a9931541d6ad Cq-Include-Trybots:dart/try:vm-kernel-mac-release-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/158001 Auto-Submit: Daco Harkes <[email protected]> Commit-Queue: Alexander Aprelev <[email protected]> Reviewed-by: Alexander Aprelev <[email protected]>
1 parent d98f777 commit ba19b1d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

runtime/include/dart_api_dl.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
#include <string.h>
1212

13-
#define DART_API_DL_DEFINITIONS(name, R, A) \
14-
typedef R(*name##_Type) A; \
15-
name##_Type name##_DL = NULL;
13+
#define DART_API_DL_DEFINITIONS(name, R, A) name##_Type name##_DL = NULL;
1614

1715
DART_API_ALL_DL_SYMBOLS(DART_API_DL_DEFINITIONS)
1816

0 commit comments

Comments
 (0)