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>
This commit is contained in:
Dylan Baker
2017-11-20 10:05:25 -08:00
parent 105178db8f
commit a4f1fc5dd1
-2
View File
@@ -24,10 +24,8 @@
#include <gtest/gtest.h>
#include "main/glheader.h"
extern "C" {
#include "glapi/glapi.h"
#include "glapi/glapitable.h"
}
struct name_offset {
const char *name;