diff options
author | George Kyriazis <[email protected]> | 2017-01-04 13:13:36 -0600 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-01-05 07:30:18 -0600 |
commit | 36ad8265489fc66ab45b9b74dafa353a93bdb03b (patch) | |
tree | eb08acbe69bb63d80d8c2fd199962622856a9305 /src/gallium/auxiliary | |
parent | 3753dc896dfe98b246ba8b030aab27a9928533af (diff) |
swr: fix windows build break
wrap lp_bld_type.h around extern "C".
Windows decorates global variables, so when used from .cpp files, need
to use an undecorated version.
Also, removed related and unneeded code from swr_screen.cpp
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_type.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_type.h b/src/gallium/auxiliary/gallivm/lp_bld_type.h index 7fb449fd03f..afe8722b05a 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_type.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_type.h @@ -41,6 +41,10 @@ #include "pipe/p_compiler.h" #include "gallivm/lp_bld.h" +#ifdef __cplusplus +extern "C" { +#endif + /** * Native SIMD architecture width available at runtime. * @@ -449,5 +453,8 @@ lp_build_context_init(struct lp_build_context *bld, unsigned lp_build_count_ir_module(LLVMModuleRef module); +#ifdef __cplusplus +} +#endif #endif /* !LP_BLD_TYPE_H */ |