From: outfrost Date: Wed, 10 Oct 2018 22:09:45 +0000 (+0200) Subject: Add and fix header guards X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=0572a34115916f8b8c203452c41e82cb1b1d17da;p=shadowclad.git Add and fix header guards --- diff --git a/debugutil.h b/debugutil.h index df7a31e..f2b4e69 100644 --- a/debugutil.h +++ b/debugutil.h @@ -1 +1,6 @@ +#ifndef DEBUGUTIL_H_ +#define DEBUGUTIL_H_ + char * get_gl_info(); + +#endif diff --git a/glut_janitor.h b/glut_janitor.h index 7c79355..680b69c 100644 --- a/glut_janitor.h +++ b/glut_janitor.h @@ -1,4 +1,9 @@ +#ifndef GLUT_JANITOR_H_ +#define GLUT_JANITOR_H_ + #include void init_render(); void resize_stage(GLsizei width, GLsizei height); + +#endif diff --git a/level.h b/level.h index 22e4ad4..692f01d 100644 --- a/level.h +++ b/level.h @@ -1,5 +1,5 @@ -#ifndef LEVEL_H -#define LEVEL_H +#ifndef LEVEL_H_ +#define LEVEL_H_ #include diff --git a/render.h b/render.h index 3eb135f..659c4b6 100644 --- a/render.h +++ b/render.h @@ -1,2 +1,7 @@ +#ifndef RENDER_H_ +#define RENDER_H_ + void render_scene(); void draw_axes(); + +#endif diff --git a/tga.h b/tga.h index c79ec76..0e4f29f 100644 --- a/tga.h +++ b/tga.h @@ -1,5 +1,5 @@ -#ifndef TGA_H -#define TGA_H +#ifndef TGA_H_ +#define TGA_H_ #include diff --git a/typedefs.h b/typedefs.h index d492aee..8343393 100644 --- a/typedefs.h +++ b/typedefs.h @@ -1 +1,6 @@ +#ifndef TYPEDEFS_H_ +#define TYPEDEFS_H_ + typedef float point3f[3]; + +#endif