util: Add extern c to u_dynarray.h

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
Thomas Helland 2017-06-03 19:59:07 +02:00 committed by Marek Olšák
parent cfb696dc82
commit 4ba4f0e976

View file

@ -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 */