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 <emil.velikov@collabora.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:

committed by
Emil Velikov

parent
7fcbb1a902
commit
e4f971c85f
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user