Mesa (master): glx: Add missing include guards

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 30 12:19:27 UTC 2018


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

Author: Michał Janiszewski <janisozaur+signed at gmail.com>
Date:   Mon Oct 29 15:51:00 2018 -0600

glx: Add missing include guards

Signed-off-by: Michał Janiszewski <janisozaur+signed at gmail.com>

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/glx/dri2_priv.h  | 5 +++++
 src/glx/drisw_priv.h | 5 +++++
 src/glx/glx_error.h  | 6 ++++++
 3 files changed, 16 insertions(+)

diff --git a/src/glx/dri2_priv.h b/src/glx/dri2_priv.h
index 30ab2cdd87..a93551b146 100644
--- a/src/glx/dri2_priv.h
+++ b/src/glx/dri2_priv.h
@@ -30,6 +30,9 @@
  *   Kristian Høgsberg (krh at redhat.com)
  */
 
+#ifndef DRI2_PRIV_H
+#define DRI2_PRIV_H
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -82,3 +85,5 @@ dri2_interop_export_object(struct glx_context *ctx,
 #ifdef __cplusplus
 }
 #endif
+
+#endif
diff --git a/src/glx/drisw_priv.h b/src/glx/drisw_priv.h
index a670da2d33..259fc864f6 100644
--- a/src/glx/drisw_priv.h
+++ b/src/glx/drisw_priv.h
@@ -23,6 +23,9 @@
  * SOFTWARE.
  */
 
+#ifndef DRISW_PRIV_H
+#define DRISW_PRIV_H
+
 #include <X11/extensions/XShm.h>
 
 struct drisw_display
@@ -73,3 +76,5 @@ drisw_query_renderer_integer(struct glx_screen *base, int attribute,
 _X_HIDDEN int
 drisw_query_renderer_string(struct glx_screen *base, int attribute,
                             const char **value);
+
+#endif
diff --git a/src/glx/glx_error.h b/src/glx/glx_error.h
index 5d3992672e..6a2f32aa56 100644
--- a/src/glx/glx_error.h
+++ b/src/glx/glx_error.h
@@ -26,6 +26,10 @@
  promote the sale, use or other dealings in this Software without
  prior written authorization.
 */
+
+#ifndef GLX_ERROR_H
+#define GLX_ERROR_H
+
 #include <stdbool.h>
 #include <stdint.h>
 #include <X11/Xlib.h>
@@ -45,3 +49,5 @@ _X_HIDDEN void __glXSendErrorForXcb(Display * dpy,
 #ifdef __cplusplus
 }
 #endif
+
+#endif




More information about the mesa-commit mailing list