OSDN Git Service

mesa: remove unneeded extern C {} wrapper
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 16 Feb 2017 15:16:34 +0000 (15:16 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 21 Feb 2017 18:28:59 +0000 (18:28 +0000)
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@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/compiler.h

index c5ee741..43a06b4 100644 (file)
 #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 */