From d1c3cbe498daa3744056747c91ae9bb02ad8e3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Tue, 6 Feb 2018 19:07:07 +0100 Subject: [PATCH] Add missing pragma once on headers --- Implicit.hpp | 2 ++ Mesh.hpp | 2 ++ common_structures.hpp | 2 ++ render/GlutRender.hpp | 2 ++ util/ObjParser.hpp | 2 ++ 5 files changed, 10 insertions(+) diff --git a/Implicit.hpp b/Implicit.hpp index 94f3bd8..8a45776 100644 --- a/Implicit.hpp +++ b/Implicit.hpp @@ -1,3 +1,5 @@ +#pragma once + class ImplicitSurface { public: virtual double operator() (double x, double y, double z); diff --git a/Mesh.hpp b/Mesh.hpp index 63ea5f8..e46c127 100644 --- a/Mesh.hpp +++ b/Mesh.hpp @@ -2,6 +2,8 @@ * Defines a mesh, ready to be OpenGL-rendered **/ +#pragma once + #include #include #include // size_t diff --git a/common_structures.hpp b/common_structures.hpp index b38e2d6..fd6d841 100644 --- a/common_structures.hpp +++ b/common_structures.hpp @@ -2,6 +2,8 @@ * Defines a few widely used, widely spread structures. Imported pervasively. **/ +#pragma once + #include // Hash #include #include diff --git a/render/GlutRender.hpp b/render/GlutRender.hpp index 699a26a..688a1d6 100644 --- a/render/GlutRender.hpp +++ b/render/GlutRender.hpp @@ -1,5 +1,7 @@ /** The most basic renderer — a stupid glut application */ +#pragma once + #include "../Mesh.hpp" #include diff --git a/util/ObjParser.hpp b/util/ObjParser.hpp index 5fa697b..02ddcb2 100644 --- a/util/ObjParser.hpp +++ b/util/ObjParser.hpp @@ -1,5 +1,7 @@ /** Parses .obj mesh files, outputting a `Mesh` */ +#pragma once + #include #include #include