Fix invalid extern "C" around header inclusion.

System headers may contain C++ declarations, which cannot be given C
linkage.  For this reason, include statements should never occur
inside extern "C".

This patch moves the C linkage statements to enclose only the
declarations within a single header.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
Mark Janes
2015-03-04 16:37:29 -08:00
committed by Matt Turner
parent 2e4c95dfe2
commit 237dcb4aa7
26 changed files with 96 additions and 38 deletions
@@ -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;