gallium/auxilary: more __cplusplus exports
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 19 Feb 2016 03:30:46 +0000 (21:30 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 3 Mar 2016 00:38:41 +0000 (18:38 -0600)
swr driver which is written in C++ needs access to some more
gallium utility functions than are currently exposed.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_flow.h
src/gallium/auxiliary/gallivm/lp_bld_init.h
src/gallium/auxiliary/gallivm/lp_bld_sample.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
src/gallium/auxiliary/util/u_dl.h

index 0da849bfe0cc061bf75fc14df1232efd1f4fe189..083b0ad9fecb4e4cc37960335938cba84d96f8d6 100644 (file)
@@ -37,6 +37,9 @@
 
 #include "gallivm/lp_bld.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 struct lp_type;
 
@@ -198,4 +201,8 @@ lp_build_array_alloca(struct gallivm_state *gallivm,
                       LLVMValueRef count,
                       const char *name);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* !LP_BLD_FLOW_H */
index 9e50f88931d07469f15266e12600381bda7d37bd..ab44661a271d013ab55438d8a25ed453e32812ab 100644 (file)
@@ -35,6 +35,9 @@
 #include "lp_bld.h"
 #include <llvm-c/ExecutionEngine.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 struct gallivm_state
 {
@@ -82,4 +85,8 @@ void
 lp_set_store_alignment(LLVMValueRef Inst,
                       unsigned Align);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* !LP_BLD_INIT_H */
index a6f0eff42f684c7f05218a0fea4327293e7dd694..902ae41f96068c09a858b7e9884a5b5b6ec5509b 100644 (file)
@@ -42,6 +42,9 @@
 #include "gallivm/lp_bld_type.h"
 #include "gallivm/lp_bld_swizzle.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 struct pipe_resource;
 struct pipe_sampler_view;
@@ -625,5 +628,8 @@ lp_build_minify(struct lp_build_context *bld,
                 LLVMValueRef level,
                 boolean lod_scalar);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* LP_BLD_SAMPLE_H */
index cc4549778a3fbe86a55d83fb2d0da8fa2e7550e4..b005d7a0ac15b81887524130928a205f27480628 100644 (file)
 #include "tgsi/tgsi_scan.h"
 #include "tgsi/tgsi_info.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define LP_CHAN_ALL ~0
 
 #define LP_MAX_INSTRUCTIONS 256
@@ -663,4 +667,8 @@ lp_build_tgsi_llvm(
    struct lp_build_tgsi_context * bld_base,
    const struct tgsi_token *tokens);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LP_BLD_TGSI_H */
index 80a00ed67963c53822765c73720d5637b23018b7..d2f4737d42a858ace8032b48c4224a91f252741d 100644 (file)
@@ -32,6 +32,9 @@
 
 #include "pipe/p_config.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #if defined(PIPE_OS_WINDOWS)
 #  define UTIL_DL_EXT ".dll"
@@ -79,5 +82,8 @@ util_dl_close(struct util_dl_library *library);
 const char *
 util_dl_error(void);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* U_DL_H_ */