1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

C++ modernize: Pragma once (#6264)

* Migrate cpp headers to pragma once
This commit is contained in:
Loïc Blot 2017-08-17 22:19:39 +02:00 committed by GitHub
parent c738d1eeab
commit 921151d97a
236 changed files with 288 additions and 1028 deletions

View file

@ -29,8 +29,7 @@
john@suckerfreegames.com
*/
#ifndef __C_GUI_TTFONT_H_INCLUDED__
#define __C_GUI_TTFONT_H_INCLUDED__
#pragma once
#include <irrlicht.h>
#include <ft2build.h>
@ -390,5 +389,3 @@ namespace gui
} // end namespace gui
} // end namespace irr
#endif // __C_GUI_TTFONT_H_INCLUDED__

View file

@ -28,8 +28,7 @@
john@suckerfreegames.com
*/
#ifndef __IRR_USTRING_H_INCLUDED__
#define __IRR_USTRING_H_INCLUDED__
#pragma once
#if (__cplusplus > 199711L) || (_MSC_VER >= 1600) || defined(__GXX_EXPERIMENTAL_CXX0X__)
# define USTRING_CPP0X
@ -3890,5 +3889,3 @@ class hash : public std::unary_function<core::ustring, size_t>
} // end namespace core
} // end namespace irr
#endif

View file

@ -4,8 +4,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __C_GUI_STATIC_TEXT_H_INCLUDED__
#define __C_GUI_STATIC_TEXT_H_INCLUDED__
#pragma once
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_GUI_
@ -264,5 +263,3 @@ inline void setStaticText(irr::gui::IGUIStaticText *static_text, const wchar_t *
}
#endif // _IRR_COMPILE_WITH_GUI_
#endif // C_GUI_STATIC_TEXT_H_INCLUDED