summaryrefslogtreecommitdiffstats
path: root/src/util/register_allocate.h
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-03-20 16:04:40 +0000
committerEmil Velikov <[email protected]>2017-03-22 16:55:22 +0000
commitd542d2fc13fd67a444c202b706fa44a34cc53c90 (patch)
tree187babbff7c2b13a9db00334ba8884c83504802f /src/util/register_allocate.h
parent43a9ca8eb42884e2386a4ff8cda5fa4b925b290e (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/register_allocate.h')
-rw-r--r--src/util/register_allocate.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/register_allocate.h b/src/util/register_allocate.h
index 628d2bbbced..6abb4e04d0b 100644
--- a/src/util/register_allocate.h
+++ b/src/util/register_allocate.h
@@ -25,8 +25,10 @@
*
*/
-#include <stdbool.h>
+#ifndef REGISTER_ALLOCATE_H
+#define REGISTER_ALLOCATE_H
+#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
@@ -89,3 +91,5 @@ int ra_get_best_spill_node(struct ra_graph *g);
#ifdef __cplusplus
} // extern "C"
#endif
+
+#endif /* REGISTER_ALLOCATE_H */