[mutter] native/cogl-utils: Minor macro cleanup



commit 036ce1f28e50262b12ca24298c3ed16b51cd7473
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu Jan 28 17:39:19 2021 +0100

    native/cogl-utils: Minor macro cleanup
    
    We don't use 'pragma once' in mutter, and cogl/cogl.h isn't a system
    include.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1690>

 src/backends/native/meta-cogl-utils.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/backends/native/meta-cogl-utils.h b/src/backends/native/meta-cogl-utils.h
index cd20426f05..b5fe6296f0 100644
--- a/src/backends/native/meta-cogl-utils.h
+++ b/src/backends/native/meta-cogl-utils.h
@@ -21,11 +21,10 @@
  *
  */
 
+#ifndef META_COGL_UTILS_H
+#define META_COGL_UTILS_H
 
-
-#pragma once
-
-#include <cogl/cogl.h>
+#include "cogl/cogl.h"
 
 G_BEGIN_DECLS
 
@@ -35,3 +34,5 @@ meta_cogl_pixel_format_from_drm_format (uint32_t               drm_format,
                                         CoglTextureComponents *out_components);
 
 G_END_DECLS
+
+#endif /* META_COGL_UTILS_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]