[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 <dacoharkes@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
This commit is contained in:
Daco Harkes 2020-08-10 16:57:23 +00:00 committed by commit-bot@chromium.org
parent d98f777da8
commit ba19b1dd4b

View file

@ -10,9 +10,7 @@
#include <string.h>
#define DART_API_DL_DEFINITIONS(name, R, A) \
typedef R(*name##_Type) A; \
name##_Type name##_DL = NULL;
#define DART_API_DL_DEFINITIONS(name, R, A) name##_Type name##_DL = NULL;
DART_API_ALL_DL_SYMBOLS(DART_API_DL_DEFINITIONS)