[Mesa-dev] [PATCH 7/7] util: Add extern c to u_dynarray.h

Thomas Helland thomashelland90 at gmail.com
Tue Jun 6 10:07:32 UTC 2017


2017-06-05 23:27 GMT+02:00 Marek Olšák <maraeo at gmail.com>:
> For the series:
>
> Reviewed-by: Marek Olšák <marek.olsak at amd.com>
>
> Marek
>

As-is? Or with Eric's suggestions of splitting patch 6?
If it is OK as it is, do you mind pushing this for me?
Thanks for the review =)

Regards,
Thomas

>
> 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