[Mesa-dev] [PATCH] [swr] fix windows build

Emil Velikov emil.l.velikov at gmail.com
Thu Feb 16 13:04:27 UTC 2017


On 15 February 2017 at 22:46, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Yeah, just like all the other headers:
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> define api's
>
> #ifdef __cplusplus
> }
> #endif
>
> You can see examples in, e.g., u_bitcast.h (picked one at random).
>
Thanks for spotting this one Ilia.

Anyone wondering why using extern C { #include "foo.h"} is a bad idea, see [1].

-Emil
[1] http://developers.redhat.com/blog/2016/02/29/why-cstdlib-is-more-complicated-than-you-might-think/


More information about the mesa-dev mailing list