Mesa (master): compiler: consistently use ifndef guards over pragma once
Emil Velikov
evelikov at kemper.freedesktop.org
Wed Mar 22 16:59:31 UTC 2017
Module: Mesa
Branch: master
Commit: b0bfb5f89c6d5673d81c356ec793fc75cd9e8332
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0bfb5f89c6d5673d81c356ec793fc75cd9e8332
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Mon Mar 20 16:04:07 2017 +0000
compiler: consistently use ifndef guards over pragma once
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Acked-by: Vedran Miletić <vedran at miletic.net>
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>
---
src/compiler/glsl_types.h | 1 -
src/compiler/nir_types.h | 5 ++++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h
index 23d600589f..7709556fe0 100644
--- a/src/compiler/glsl_types.h
+++ b/src/compiler/glsl_types.h
@@ -22,7 +22,6 @@
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef GLSL_TYPES_H
#define GLSL_TYPES_H
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index e99b226216..228d33ae96 100644
--- a/src/compiler/nir_types.h
+++ b/src/compiler/nir_types.h
@@ -25,7 +25,8 @@
*
*/
-#pragma once
+#ifndef NIR_TYPES_H
+#define NIR_TYPES_H
#include <stdio.h>
#include <stdbool.h>
@@ -157,3 +158,5 @@ const struct glsl_type *glsl_transposed_type(const struct glsl_type *type);
#ifdef __cplusplus
}
#endif
+
+#endif /* NIR_TYPES_H */
More information about the mesa-commit
mailing list