aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-03-20 16:04:07 +0000
committerEmil Velikov <[email protected]>2017-03-22 16:55:21 +0000
commitb0bfb5f89c6d5673d81c356ec793fc75cd9e8332 (patch)
treeb9ec89c10d4ec91a26256967025b7426a087df1b /src
parentb9d035e75bfa8c0f9ba8bce196185112d6398036 (diff)
compiler: 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')
-rw-r--r--src/compiler/glsl_types.h1
-rw-r--r--src/compiler/nir_types.h5
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 */