From e4f971c85f96f2cea8011e469170b4844deb34d9 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 16 Feb 2017 15:16:38 +0000 Subject: [PATCH] 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 Reviewed-by: Brian Paul --- src/compiler/nir/nir.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +#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) { -- 2.30.2