[Mesa-dev] [PATCH 13/13] i915: remove extern "C" guards

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


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

None of this code is used in C++ context.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/mesa/drivers/dri/i915/intel_batchbuffer.h | 8 --------
 src/mesa/drivers/dri/i915/intel_context.h     | 8 --------
 src/mesa/drivers/dri/i915/intel_fbo.h         | 8 --------
 src/mesa/drivers/dri/i915/intel_mipmap_tree.h | 8 --------
 src/mesa/drivers/dri/i915/intel_regions.h     | 8 --------
 5 files changed, 40 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.h b/src/mesa/drivers/dri/i915/intel_batchbuffer.h
index c4efa762bc..9ebc61f1c2 100644
--- a/src/mesa/drivers/dri/i915/intel_batchbuffer.h
+++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.h
@@ -7,10 +7,6 @@
 #include "intel_bufmgr.h"
 #include "intel_reg.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /**
  * Number of bytes to reserve for commands necessary to complete a batch.
  *
@@ -152,8 +148,4 @@ intel_batchbuffer_advance(struct intel_context *intel)
 #define ADVANCE_BATCH() intel_batchbuffer_advance(intel);
 #define CACHED_BATCH() intel_batchbuffer_cached_advance(intel);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h
index 139a033777..d0f3d367cb 100644
--- a/src/mesa/drivers/dri/i915/intel_context.h
+++ b/src/mesa/drivers/dri/i915/intel_context.h
@@ -47,10 +47,6 @@
 #include "tnl_dd/t_dd_vertex.h"
 #undef TAG
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #define DV_PF_555  (1<<8)
 #define DV_PF_565  (2<<8)
 #define DV_PF_8888 (3<<8)
@@ -446,8 +442,4 @@ intel_context(struct gl_context * ctx)
    return (struct intel_context *) ctx;
 }
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
diff --git a/src/mesa/drivers/dri/i915/intel_fbo.h b/src/mesa/drivers/dri/i915/intel_fbo.h
index 769dab8689..a30830b471 100644
--- a/src/mesa/drivers/dri/i915/intel_fbo.h
+++ b/src/mesa/drivers/dri/i915/intel_fbo.h
@@ -36,10 +36,6 @@
 #include "intel_mipmap_tree.h"
 #include "intel_screen.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 struct intel_context;
 struct intel_mipmap_tree;
 struct intel_texture_image;
@@ -158,8 +154,4 @@ intel_renderbuffer_get_tile_offsets(struct intel_renderbuffer *irb,
 struct intel_region*
 intel_get_rb_region(struct gl_framebuffer *fb, GLuint attIndex);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* INTEL_FBO_H */
diff --git a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
index 2520b3035b..853a4a7986 100644
--- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
+++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
@@ -34,10 +34,6 @@
 #include "intel_regions.h"
 #include "GL/internal/dri_interface.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /* A layer on top of the intel_regions code which adds:
  *
  * - Code to size and layout a region to hold a set of mipmaps.
@@ -369,8 +365,4 @@ intel_miptree_unmap(struct intel_context *intel,
 		    unsigned int slice);
 
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
diff --git a/src/mesa/drivers/dri/i915/intel_regions.h b/src/mesa/drivers/dri/i915/intel_regions.h
index eb1c3f62b3..562f7cd902 100644
--- a/src/mesa/drivers/dri/i915/intel_regions.h
+++ b/src/mesa/drivers/dri/i915/intel_regions.h
@@ -41,10 +41,6 @@
 #include "main/mtypes.h"
 #include "intel_bufmgr.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 struct intel_context;
 struct intel_screen;
 struct intel_buffer_object;
@@ -153,8 +149,4 @@ struct __DRIimageRec {
    void *data;
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
-- 
2.11.0



More information about the mesa-dev mailing list