[Mesa-dev] [PATCH 08/13] nir: do not #include util/debug.h within extern C {}
Emil Velikov
emil.l.velikov at gmail.com
Thu Feb 16 15:16:38 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
It's a problem waiting to happen. Individual headers should be annotated
if needed.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
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 d92e6eb110..a110b816f0 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)
{
--
2.11.0
More information about the mesa-dev
mailing list