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 commit a4f1fc5dd1)
This commit is contained in:
Dylan Baker 2017-11-20 10:05:25 -08:00 committed by Juan A. Suarez Romero
parent 45bf95ebad
commit 9d9a52bb27

View file

@ -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;