mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
mesa: Fix misplaced includes of "main/uniforms.h".
Several C++ source files include "main/uniforms.h" from an extern "C"
block, which is both unnecessary, because "uniforms.h" already checks
for a C++ compiler and sets the right linkage, and incorrect, because
the header file includes other C++ headers ("glsl_types.h" and
"ir_uniform.h") that are supposed to get C++ linkage.
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
6349b3235c
commit
0e72db9f97
5 changed files with 4 additions and 5 deletions
|
|
@ -35,7 +35,6 @@ extern "C" {
|
|||
#include "main/hash_table.h"
|
||||
#include "main/macros.h"
|
||||
#include "main/shaderobj.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "main/fbobject.h"
|
||||
#include "program/prog_parameter.h"
|
||||
#include "program/prog_print.h"
|
||||
|
|
@ -47,6 +46,7 @@ extern "C" {
|
|||
#include "brw_wm.h"
|
||||
}
|
||||
#include "brw_fs.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "glsl/glsl_types.h"
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ extern "C" {
|
|||
|
||||
#include "main/macros.h"
|
||||
#include "main/shaderobj.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "program/prog_parameter.h"
|
||||
#include "program/prog_print.h"
|
||||
#include "program/prog_optimize.h"
|
||||
|
|
@ -45,6 +44,7 @@ extern "C" {
|
|||
#include "brw_wm.h"
|
||||
}
|
||||
#include "brw_fs.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "glsl/glsl_types.h"
|
||||
#include "glsl/ir_optimization.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ extern "C" {
|
|||
#include "imports.h"
|
||||
#include "mtypes.h"
|
||||
#include "main/context.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "main/macros.h"
|
||||
#include "main/samplerobj.h"
|
||||
#include "program/program.h"
|
||||
|
|
|
|||
|
|
@ -44,11 +44,11 @@
|
|||
|
||||
#include "main/mtypes.h"
|
||||
#include "main/shaderobj.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "program/hash_table.h"
|
||||
|
||||
extern "C" {
|
||||
#include "main/shaderapi.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "program/prog_instruction.h"
|
||||
#include "program/prog_optimize.h"
|
||||
#include "program/prog_print.h"
|
||||
|
|
|
|||
|
|
@ -43,11 +43,11 @@
|
|||
|
||||
#include "main/mtypes.h"
|
||||
#include "main/shaderobj.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "program/hash_table.h"
|
||||
|
||||
extern "C" {
|
||||
#include "main/shaderapi.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "program/prog_instruction.h"
|
||||
#include "program/prog_optimize.h"
|
||||
#include "program/prog_print.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue