From d5db27706c484727e50e62ea9c378ad9c762280c Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 16 Feb 2017 15:16:34 +0000 Subject: [PATCH] mesa: remove unneeded extern C {} wrapper MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit compiler.h defines a few mesa specific macros which are not C specific. This allows us to avoid buggy extern C { #include $system_header } constructs. Signed-off-by: Emil Velikov Reviewed-by: Nicolai Hähnle Reviewed-by: Brian Paul --- src/mesa/main/compiler.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index c5ee7412b62..43a06b43139 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -41,11 +41,6 @@ #include "c99_compat.h" /* inline, __func__, etc. */ -#ifdef __cplusplus -extern "C" { -#endif - - /** * Either define MESA_BIG_ENDIAN or MESA_LITTLE_ENDIAN, and CPU_TO_LE32. * Do not use these unless absolutely necessary! @@ -78,9 +73,4 @@ extern "C" { #define IEEE_ONE 0x3f800000 -#ifdef __cplusplus -} -#endif - - #endif /* COMPILER_H */ -- 2.30.2