[Mesa-dev] [PATCH 04/18] compiler: consistently use ifndef guards over pragma once
Emil Velikov
emil.l.velikov at gmail.com
Mon Mar 20 16:12:54 UTC 2017
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
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 23d600589f6..7709556fe0c 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 e99b2262162..228d33ae966 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 */
--
2.11.1
More information about the mesa-dev
mailing list