Fix invalid extern "C" around header inclusion.
authorMark Janes <mark.a.janes@intel.com>
Thu, 5 Mar 2015 00:37:29 +0000 (16:37 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 5 Mar 2015 18:21:40 +0000 (10:21 -0800)
commit237dcb4aa7c39c59bfd225ae3d73caf709be216d
tree9139b596ac2383fa3e4ada351b94000ba9319e5f
parent2e4c95dfe2cb205c327ceaa12b44a9273bdb20dc
Fix invalid extern "C" around header inclusion.

System headers may contain C++ declarations, which cannot be given C
linkage.  For this reason, include statements should never occur
inside extern "C".

This patch moves the C linkage statements to enclose only the
declarations within a single header.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
26 files changed:
src/gallium/auxiliary/util/u_math.h
src/gallium/drivers/r600/r600_shader.h
src/gallium/drivers/r600/sb/sb_bc.h
src/gallium/drivers/r600/sb/sb_bc_parser.cpp
src/gallium/drivers/r600/sb/sb_core.cpp
src/gallium/drivers/r600/sb/sb_public.h
src/glx/indirect_init.h
src/glx/tests/indirect_api.cpp
src/mapi/shared-glapi/tests/check_table.cpp
src/mesa/drivers/common/driverfuncs.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/main/api_exec.h
src/mesa/main/tests/dispatch_sanity.cpp
src/mesa/main/tests/program_state_string.cpp
src/mesa/main/vtxfmt.h
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_context.h
src/util/Makefile.am
src/util/register_allocate.h