Skip to content

Commit

Permalink
Modernize include guards and add missing ones (minetest#9898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Awkor committed May 23, 2020
1 parent e79bc40 commit 037422f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/client/hud.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef CLIENT_HUD_HEADER
#define CLIENT_HUD_HEADER
#pragma once

#include <vector>
#include <IGUIFont.h>
Expand Down Expand Up @@ -147,4 +146,3 @@ void drawItemStack(
const v3s16 &angle,
const v3s16 &rotation_speed);

#endif
2 changes: 2 additions & 0 deletions src/client/render/factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#pragma once

#include <string>
#include "core.h"

Expand Down
2 changes: 2 additions & 0 deletions src/gui/guiButtonImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#pragma once

#include "guiButton.h"
#include "IGUIButton.h"

Expand Down
2 changes: 2 additions & 0 deletions src/gui/guiButtonItemImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#pragma once

#include "guiButton.h"
#include "IGUIButton.h"

Expand Down
4 changes: 1 addition & 3 deletions src/hud.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef HUD_HEADER
#define HUD_HEADER
#pragma once

#include "irrlichttypes_extrabloated.h"
#include <string>
Expand Down Expand Up @@ -101,4 +100,3 @@ extern const EnumString es_HudElementType[];
extern const EnumString es_HudElementStat[];
extern const EnumString es_HudBuiltinElement[];

#endif
2 changes: 2 additions & 0 deletions src/script/lua_api/l_particles_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#pragma once

#include "lua_api/l_base.h"

class ModApiParticlesLocal : public ModApiBase
Expand Down
2 changes: 2 additions & 0 deletions src/util/md32_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@
* <[email protected]>
*/

#pragma once

#if !defined(DATA_ORDER_IS_BIG_ENDIAN) && !defined(DATA_ORDER_IS_LITTLE_ENDIAN)
# error "DATA_ORDER must be defined!"
#endif
Expand Down

0 comments on commit 037422f

Please sign in to comment.