cogl: Switch remaining headers to pragma once
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
parent
6c1739ea1c
commit
b3404816fb
3 changed files with 3 additions and 12 deletions
|
@ -28,8 +28,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COGL_CPU_CAPS_H
|
#pragma once
|
||||||
#define COGL_CPU_CAPS_H
|
|
||||||
|
|
||||||
#include "cogl/cogl-types.h"
|
#include "cogl/cogl-types.h"
|
||||||
|
|
||||||
|
@ -50,5 +49,3 @@ cogl_cpu_has_cap (CoglCpuCaps cap)
|
||||||
{
|
{
|
||||||
return !!(cogl_cpu_caps & cap);
|
return !!(cogl_cpu_caps & cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* COGL_CPU_CAPS_H */
|
|
||||||
|
|
|
@ -23,8 +23,7 @@
|
||||||
|
|
||||||
/* This source file is originally from Mesa (src/util/half_float.h). */
|
/* This source file is originally from Mesa (src/util/half_float.h). */
|
||||||
|
|
||||||
#ifndef COGL_HALF_FLOAT_H
|
#pragma once
|
||||||
#define COGL_HALF_FLOAT_H
|
|
||||||
|
|
||||||
#include "cogl/cogl-types.h"
|
#include "cogl/cogl-types.h"
|
||||||
|
|
||||||
|
@ -117,5 +116,3 @@ cogl_half_is_negative (uint16_t h)
|
||||||
{
|
{
|
||||||
return !!(h & 0x8000);
|
return !!(h & 0x8000);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* COGL_HALF_FLOAT_H */
|
|
||||||
|
|
|
@ -40,8 +40,7 @@
|
||||||
* from the Berkeley SoftFloat 3e Library.
|
* from the Berkeley SoftFloat 3e Library.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COGL_SOFT_FLOAT_H
|
#pragma once
|
||||||
#define COGL_SOFT_FLOAT_H
|
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -67,5 +66,3 @@ float cogl_double_to_f32 (double x,
|
||||||
gboolean rtz);
|
gboolean rtz);
|
||||||
|
|
||||||
uint16_t cogl_float_to_half_rtz_slow (float x);
|
uint16_t cogl_float_to_half_rtz_slow (float x);
|
||||||
|
|
||||||
#endif /* COGL_SOFT_FLOAT_H */
|
|
||||||
|
|
Loading…
Reference in a new issue