From: Emil Velikov Date: Thu, 16 Feb 2017 15:16:34 +0000 (+0000) Subject: mesa: remove unneeded extern C {} wrapper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5db27706c484727e50e62ea9c378ad9c762280c;p=mesa.git mesa: remove unneeded extern C {} wrapper 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 --- 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 */