diff options
author | Thomas Helland <[email protected]> | 2017-06-03 19:59:07 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-07 21:07:24 +0200 |
commit | 4ba4f0e97673bae2d3a8b7e5bac3210a4c2d944e (patch) | |
tree | acf5da0a2d15601f745cc3301d494f2d00995fec /src/util/u_dynarray.h | |
parent | cfb696dc82cff429ecba35418375ae950ed506da (diff) |
util: Add extern c to u_dynarray.h
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util/u_dynarray.h')
-rw-r--r-- | src/util/u_dynarray.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <stdlib.h> #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 */ |