mesa/program: consistently use ifndef guards over pragma once

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>
This commit is contained in:
Emil Velikov
2017-03-20 16:04:39 +00:00
parent f66fe28d9f
commit 43a9ca8eb4
4 changed files with 9 additions and 4 deletions

View 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 */

View 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

View File

@@ -21,7 +21,6 @@
* IN THE SOFTWARE.
*/
#pragma once
#ifndef PROG_TO_NIR_H
#define PROG_TO_NIR_H

View 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 */