On 15 February 2017 at 22:46, Ilia Mirkin <imir...@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/ _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev