mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
cfb696dc82
commit
4ba4f0e976
1 changed files with 8 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue