Re: [Mesa-dev] [PATCH v2] swr: fix windows build break

2017-01-04 Thread Ilia Mirkin
Sorry, I should have been more explicit. Wrap the *whole* file in that, since it's all C-calling convention. See how it's done in, e.g., src/gallium/auxiliary/gallivm/lp_bld_init.h among many others. In general, all header files should have that to make them safe to include from both C and C++ code

[Mesa-dev] [PATCH v2] swr: fix windows build break

2017-01-04 Thread George Kyriazis
wrap lp_native_vector_width around extern "C" for C++. Windows decorates global variables, so when used from .cpp files, need to use an undecorated version. --- src/gallium/auxiliary/gallivm/lp_bld_type.h | 7 +++ src/gallium/drivers/swr/swr_screen.cpp | 4 2 files changed, 7 inserti