Module: Mesa
Branch: master
Commit: d5db27706c484727e50e62ea9c378ad9c762280c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5db27706c484727e50e62ea9c378ad9c762280c

Author: Emil Velikov <emil.veli...@collabora.com>
Date:   Thu Feb 16 15:16:34 2017 +0000

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 <emil.veli...@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haeh...@amd.com>
Reviewed-by: Brian Paul <bri...@vmware.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 c5ee741..43a06b4 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 */

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to