mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
glapi/check_table: Remove 'extern "C"' block
Using 'extern "C"' around includes is always incorrect, as the header may contain C++ symbols (as it does in this case), which means it cannot use C linkage. In this case the header has a template in it, which obviously cannot be linked with C linkage rules. Fixes:a29ad2b421("mesa/tests: Add tests for the generated dispatch table") Signed-off-by: Dylan Baker <dylan.c.baker@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commita4f1fc5dd1)
This commit is contained in:
parent
45bf95ebad
commit
9d9a52bb27
1 changed files with 0 additions and 2 deletions
|
|
@ -24,10 +24,8 @@
|
|||
#include <gtest/gtest.h>
|
||||
#include "../mesa/main/glheader.h"
|
||||
|
||||
extern "C" {
|
||||
#include "glapi/glapi.h"
|
||||
#include "glapi/glapitable.h"
|
||||
}
|
||||
|
||||
struct name_offset {
|
||||
const char *name;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue