mesa/program: consistently use ifndef guards over pragma once
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 20 Mar 2017 16:04:39 +0000 (16:04 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Mar 2017 16:55:22 +0000 (16:55 +0000)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Vedran Miletić <vedran@miletic.net>
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/mesa/program/ir_to_mesa.h
src/mesa/program/prog_parameter_layout.h
src/mesa/program/prog_to_nir.h
src/mesa/program/program_parser.h

index c46d090b774efd43893e424203568d548cab1442..09446197b24a76264780dae156a4220d510b3395 100644 (file)
@@ -21,7 +21,8 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef IR_TO_MESA_H
+#define IR_TO_MESA_H
 
 #include "main/glheader.h"
 
@@ -51,3 +52,5 @@ _mesa_associate_uniform_storage(struct gl_context *ctx,
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* IR_TO_MESA_H */
index 99a7b6c72668c375b8b7b7ffa80e100c5ef47d6d..0e2d43a62565cc385cc1ddaabb4d80a7d0c617fc 100644 (file)
@@ -28,7 +28,6 @@
  * \author Ian Romanick <ian.d.romanick@intel.com>
  */
 
-#pragma once
 
 #ifndef PROG_PARAMETER_LAYOUT_H
 #define PROG_PARAMETER_LAYOUT_H
index 09425b52e17baeadcce41427de0da0595ebf5675..22a2b420cf5adfbf443f46eeae9ef5b476f588b7 100644 (file)
@@ -21,7 +21,6 @@
  * IN THE SOFTWARE.
  */
 
-#pragma once
 #ifndef PROG_TO_NIR_H
 #define PROG_TO_NIR_H
 
index 412aca1e53d4b500cdf64d639ef342833a05bfcf..dadce126247889fa340785c5e86d810d37d3ec5f 100644 (file)
@@ -20,7 +20,9 @@
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  * DEALINGS IN THE SOFTWARE.
  */
-#pragma once
+
+#ifndef PROGRAM_PARSER_H
+#define PROGRAM_PARSER_H
 
 #include "main/config.h"
 #include "program/prog_parameter.h"
@@ -288,3 +290,5 @@ extern int _mesa_parse_instruction_suffix(const struct asm_parser_state *state,
     const char *suffix, struct prog_instruction *inst);
 
 /*@}*/
+
+#endif /* PROGRAM_PARSER_H */