summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-02-16 15:16:38 +0000
committerEmil Velikov <[email protected]>2017-02-21 18:29:17 +0000
commite4f971c85f96f2cea8011e469170b4844deb34d9 (patch)
tree14225253da422fb938677fc4ce55461eddf630f8 /src/compiler
parent7fcbb1a902f3e4ce9f4d93d8b628729431f0f6fc (diff)
nir: do not #include util/debug.h within extern C {}
It's a problem waiting to happen. Individual headers should be annotated if needed. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 84451a17aad..5243a9e58e8 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -40,6 +40,10 @@
#include "compiler/shader_info.h"
#include <stdio.h>
+#ifdef DEBUG
+#include "util/debug.h"
+#endif /* DEBUG */
+
#include "nir_opcodes.h"
#ifdef __cplusplus
@@ -2279,7 +2283,6 @@ void nir_validate_shader(nir_shader *shader);
void nir_metadata_set_validation_flag(nir_shader *shader);
void nir_metadata_check_validation_flag(nir_shader *shader);
-#include "util/debug.h"
static inline bool
should_clone_nir(void)
{