[Mesa-dev] [PATCH 7/7] util: Add extern c to u_dynarray.h
Marek Olšák
maraeo at gmail.com
Mon Jun 5 21:27:19 UTC 2017
For the series:
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Sat, Jun 3, 2017 at 8:11 PM, Thomas Helland
<thomashelland90 at gmail.com> wrote:
> ---
> 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 ad3889a7c8..e9109ccd2d 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 */
>
> --
> 2.13.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list