tgsi_to_nir: add #ifdef header guards
authorMarek Olšák <marek.olsak@amd.com>
Thu, 26 Sep 2019 23:34:31 +0000 (19:34 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 Oct 2019 19:49:18 +0000 (15:49 -0400)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/auxiliary/nir/tgsi_to_nir.h

index 551ee917c8ad0e7d72859bf0a214c718e9b29f12..666fdf5b1ea1ed4710895c0b0679af6f1a7f64e6 100644 (file)
@@ -21,6 +21,9 @@
  * IN THE SOFTWARE.
  */
 
+#ifndef TGSI_TO_NIR_H
+#define TGSI_TO_NIR_H
+
 #include "compiler/nir/nir.h"
 #include "pipe/p_screen.h"
 
@@ -31,3 +34,5 @@ tgsi_to_nir(const void *tgsi_tokens,
 struct nir_shader *
 tgsi_to_nir_noscreen(const void *tgsi_tokens,
                      const nir_shader_compiler_options *options);
+
+#endif