glsl: resolve extern C workarounds/hacks
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 16 Feb 2017 15:16:37 +0000 (15:16 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 21 Feb 2017 18:29:10 +0000 (18:29 +0000)
Do not wrap header inclusion in extern C since it can cause issues.

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/compiler/glsl/blob.h
src/compiler/glsl/glsl_symbol_table.h
src/compiler/glsl/ir_print_visitor.h

index 0765bf3ef18ece82dbf072d2b8a35fa743d458cd..81b9917afcf42b24160fff8431e9d751bece59a1 100644 (file)
 #ifndef BLOB_H
 #define BLOB_H
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* The blob functions implement a simple, low-level API for serializing and
  * deserializing.
  *
index 087cc71f639899714d3a0a671c84d5f3561981c7..be910b4170c25ea0d4724551e27b3d574367d06a 100644 (file)
@@ -28,9 +28,7 @@
 
 #include <new>
 
-extern "C" {
 #include "program/symbol_table.h"
-}
 #include "ir.h"
 
 class symbol_table_entry;
index 965e63ade8bec07fe8f7bc28a0548cd6d8e4aaec..858fe97b4f2c6a128b6f651e21fb23370fabad91 100644 (file)
@@ -29,9 +29,7 @@
 #include "ir.h"
 #include "ir_visitor.h"
 
-extern "C" {
 #include "program/symbol_table.h"
-}
 
 /**
  * Abstract base class of visitors of IR instruction trees