[Mesa-dev] [PATCH 04/13] mesa: remove unneeded extern C {} wrapper

Emil Velikov emil.l.velikov at gmail.com
Thu Feb 16 15:16:34 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

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 <emil.velikov at collabora.com>
---
 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 c5ee7412b6..43a06b4313 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.11.0



More information about the mesa-dev mailing list