1
0
Fork 0

cogl: Switch remaining headers to pragma once

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
Bilal Elmoussaoui 2024-07-27 15:21:15 +02:00 committed by Marge Bot
parent 6c1739ea1c
commit b3404816fb
3 changed files with 3 additions and 12 deletions

View file

@ -28,8 +28,7 @@
*
*/
#ifndef COGL_CPU_CAPS_H
#define COGL_CPU_CAPS_H
#pragma once
#include "cogl/cogl-types.h"
@ -50,5 +49,3 @@ cogl_cpu_has_cap (CoglCpuCaps cap)
{
return !!(cogl_cpu_caps & cap);
}
#endif /* COGL_CPU_CAPS_H */

View file

@ -23,8 +23,7 @@
/* This source file is originally from Mesa (src/util/half_float.h). */
#ifndef COGL_HALF_FLOAT_H
#define COGL_HALF_FLOAT_H
#pragma once
#include "cogl/cogl-types.h"
@ -117,5 +116,3 @@ cogl_half_is_negative (uint16_t h)
{
return !!(h & 0x8000);
}
#endif /* COGL_HALF_FLOAT_H */

View file

@ -40,8 +40,7 @@
* from the Berkeley SoftFloat 3e Library.
*/
#ifndef COGL_SOFT_FLOAT_H
#define COGL_SOFT_FLOAT_H
#pragma once
#include <glib.h>
#include <stdint.h>
@ -67,5 +66,3 @@ float cogl_double_to_f32 (double x,
gboolean rtz);
uint16_t cogl_float_to_half_rtz_slow (float x);
#endif /* COGL_SOFT_FLOAT_H */