From: Thomas Helland Date: Sat, 3 Jun 2017 17:59:07 +0000 (+0200) Subject: util: Add extern c to u_dynarray.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ba4f0e97673bae2d3a8b7e5bac3210a4c2d944e;p=mesa.git util: Add extern c to u_dynarray.h Reviewed-by: Marek Olšák Reviewed-by: Eric Engestrom --- 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 */