From 4ba4f0e97673bae2d3a8b7e5bac3210a4c2d944e Mon Sep 17 00:00:00 2001 From: Thomas Helland Date: Sat, 3 Jun 2017 19:59:07 +0200 Subject: util: Add extern c to u_dynarray.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Reviewed-by: Eric Engestrom --- src/util/u_dynarray.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util/u_dynarray.h b/src/util/u_dynarray.h index ad3889a7c80..e9109ccd2d1 100644 --- a/src/util/u_dynarray.h +++ b/src/util/u_dynarray.h @@ -30,6 +30,10 @@ #include #include "ralloc.h" +#ifdef __cplusplus +extern "C" { +#endif + /* A zero-initialized version of this is guaranteed to represent an * empty array. * @@ -134,5 +138,9 @@ util_dynarray_trim(struct util_dynarray *buf) for (type *elem = (type *)(buf)->data; \ elem < (type *)((char *)(buf)->data + (buf)->size); elem++) +#ifdef __cplusplus +} +#endif + #endif /* U_DYNARRAY_H */ -- cgit v1.2.3