glapi/check_table: Remove 'extern "C"' block
authorDylan Baker <dylan@pnwbakers.com>
Mon, 20 Nov 2017 18:05:25 +0000 (10:05 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 6 Feb 2018 23:00:17 +0000 (15:00 -0800)
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: a29ad2b421b75a1727b ("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>
src/mapi/glapi/tests/check_table.cpp

index 62b3a43d22f8afadc07a9bc10f732dfd0dd00197..7cded8d352f4a71f6c66c1e6c896ad99809f6b7c 100644 (file)
 #include <gtest/gtest.h>
 #include "main/glheader.h"
 
-extern "C" {
 #include "glapi/glapi.h"
 #include "glapi/glapitable.h"
-}
 
 struct name_offset {
    const char *name;