modernize header guards to #pragma once

This commit is contained in:
Peter SZTANOJEV
2013-10-14 13:21:15 +02:00
parent 27a7873066
commit 0301b24ace
51 changed files with 52 additions and 205 deletions

View File

@@ -15,8 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#ifndef GS_GLEXPORTS
#define GS_GLEXPORTS
#pragma once
#include "util/c99defs.h"
@@ -188,5 +187,3 @@ EXPORT void shader_settexture(shader_t shader, sparam_t param, texture_t val);
EXPORT void shader_setval(shader_t shader, sparam_t param, const void *val,
size_t size);
EXPORT void shader_setdefault(shader_t shader, sparam_t param);
#endif

View File

@@ -15,8 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#ifndef GL_HELPERS_H
#define GL_HELPERS_H
#pragma once
/*
* Okay, so GL error handling is.. unclean to work with. I don't want
@@ -128,5 +127,3 @@ extern bool gl_create_buffer(GLenum target, GLuint *buffer, GLsizeiptr size,
extern bool update_buffer(GLenum target, GLuint buffer, void *data,
size_t size);
#endif

View File

@@ -15,8 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#ifndef GL_SHADER_PARSER_H
#define GL_SHADER_PARSER_H
#pragma once
/*
* Parses shaders into GLSL. Shaders are almost identical to HLSL
@@ -67,5 +66,3 @@ static inline void gl_shader_parser_free(struct gl_shader_parser *glsp)
extern bool gl_shader_parse(struct gl_shader_parser *glsp,
const char *shader_str, const char *file);
#endif

View File

@@ -15,8 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#ifndef GL_SUBSYSTEM_H
#define GL_SUBSYSTEM_H
#pragma once
#include "util/darray.h"
#include "graphics/graphics.h"
@@ -459,7 +458,3 @@ extern void gl_platform_destroy(struct gl_platform *platform);
extern struct gl_windowinfo *gl_windowinfo_create(struct gs_init_data *info);
extern void gl_windowinfo_destroy(struct gl_windowinfo *wi);
#endif