i965: Mark functions called from C as extern "C".
authorMatt Turner <mattst88@gmail.com>
Mon, 23 Nov 2015 05:54:28 +0000 (21:54 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Nov 2015 18:05:33 +0000 (10:05 -0800)
These functions' prototypes are marked with extern "C", which apparently
overrides a lack of extern "C" at the definition site if the prototype
has been seen first.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp

index 14421d421b6f6ef6d2d2f70567b9099d0f74c1a6..b3a97476ec65ef8c93480e59707ff7a987c8eea1 100644 (file)
@@ -198,7 +198,7 @@ process_glsl_ir(gl_shader_stage stage,
    }
 }
 
-GLboolean
+extern "C" GLboolean
 brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
 {
    struct brw_context *brw = brw_context(ctx);
index 810a36abe040f217215c11a34615154452ae7a65..2a25be5aa3bb205508a08bb0a8a80a35f69e21d8 100644 (file)
@@ -144,7 +144,7 @@ brw_compiler_create(void *mem_ctx, const struct brw_device_info *devinfo)
    return compiler;
 }
 
-struct gl_shader *
+extern "C" struct gl_shader *
 brw_new_shader(struct gl_context *ctx, GLuint name, GLuint type)
 {
    struct brw_shader *shader;
@@ -160,7 +160,7 @@ brw_new_shader(struct gl_context *ctx, GLuint name, GLuint type)
    return &shader->base;
 }
 
-void
+extern "C" void
 brw_mark_surface_used(struct brw_stage_prog_data *prog_data,
                       unsigned surf_index)
 {