summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2017-11-20 10:05:25 -0800
committerEmil Velikov <[email protected]>2018-03-20 16:57:22 +0000
commitb26d2238ea1692295fe7888c52c0dc8b8c651102 (patch)
tree7b12038ea6713df9377719c5a9f17379257091b5 /src/mapi
parent08135dcbc0847c037ac06d3b5f17281529ab0f3d (diff)
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: a29ad2b421b75a1727b ("mesa/tests: Add tests for the generated dispatch table") Signed-off-by: Dylan Baker <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]> (cherry picked from commit a4f1fc5dd197a0cd107b6a96a222ace4105680dd)
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/tests/check_table.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mapi/glapi/tests/check_table.cpp b/src/mapi/glapi/tests/check_table.cpp
index 09bf4f3585c..30d375c48c2 100644
--- a/src/mapi/glapi/tests/check_table.cpp
+++ b/src/mapi/glapi/tests/check_table.cpp
@@ -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;