[Mesa-dev] [PATCH 3/8] glapi/check_table: Remove 'extern "C"' block
Dylan Baker
dylan at pnwbakers.com
Mon Nov 20 23:12:47 UTC 2017
This doesn't actually accomplish what it's meant to do, as extern C
doesn't undefine __cplusplus, so the included headers define a template
(because __cplusplus is defined), but then that code is in an 'extern
"C"' block, and explosion.
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
src/mapi/glapi/tests/check_table.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/mapi/glapi/tests/check_table.cpp b/src/mapi/glapi/tests/check_table.cpp
index 62b3a43d22f..7cded8d352f 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 "main/glheader.h"
-extern "C" {
#include "glapi/glapi.h"
#include "glapi/glapitable.h"
-}
struct name_offset {
const char *name;
--
2.15.0
More information about the mesa-dev
mailing list