diff options
author | Emil Velikov <[email protected]> | 2017-03-20 16:04:40 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-22 16:55:22 +0000 |
commit | d542d2fc13fd67a444c202b706fa44a34cc53c90 (patch) | |
tree | 187babbff7c2b13a9db00334ba8884c83504802f /src/util/format_r11g11b10f.h | |
parent | 43a9ca8eb42884e2386a4ff8cda5fa4b925b290e (diff) |
util: consistently use ifndef guards over pragma once
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Vedran Miletić <[email protected]>
Acked-by: Juha-Pekka Heikkila <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/util/format_r11g11b10f.h')
-rw-r--r-- | src/util/format_r11g11b10f.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/format_r11g11b10f.h b/src/util/format_r11g11b10f.h index f6cd4ac696a..ec5abf96119 100644 --- a/src/util/format_r11g11b10f.h +++ b/src/util/format_r11g11b10f.h @@ -27,6 +27,9 @@ * below. */ +#ifndef FORMAT_R11G11B10F_H +#define FORMAT_R11G11B10F_H + #include <stdint.h> #define UF11(e, m) ((e << 6) | (m)) @@ -225,3 +228,5 @@ static inline void r11g11b10f_to_float3(uint32_t rgb, float retval[3]) retval[1] = uf11_to_f32((rgb >> 11) & 0x7ff); retval[2] = uf10_to_f32((rgb >> 22) & 0x3ff); } + +#endif /* FORMAT_R11G11B10F_H */ |