diff --git a/examples/common/cube_atlas.cpp b/examples/common/cube_atlas.cpp index f1ee2081..42d91b7a 100644 --- a/examples/common/cube_atlas.cpp +++ b/examples/common/cube_atlas.cpp @@ -1,7 +1,6 @@ /* Copyright 2013 Jeremie Roy. All rights reserved. * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#pragma once #include "cube_atlas.h" #include #include diff --git a/examples/common/cube_atlas.h b/examples/common/cube_atlas.h index 3f981227..7dceea24 100644 --- a/examples/common/cube_atlas.h +++ b/examples/common/cube_atlas.h @@ -1,7 +1,8 @@ /* Copyright 2013 Jeremie Roy. All rights reserved. * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#pragma once +#ifndef __CUBE_ATLAS_H__ +#define __CUBE_ATLAS_H__ /// Inspired from texture-atlas from freetype-gl (http://code.google.com/p/freetype-gl/) /// by Nicolas Rougier (Nicolas.Rougier@inria.fr) @@ -130,4 +131,5 @@ private: AtlasRegion* m_regions; uint8_t* m_textureBuffer; -}; \ No newline at end of file +}; +#endif // __CUBE_ATLAS_H__ diff --git a/examples/common/font/font_manager.h b/examples/common/font/font_manager.h index bf36689b..b0f98b5f 100644 --- a/examples/common/font/font_manager.h +++ b/examples/common/font/font_manager.h @@ -1,7 +1,9 @@ /* Copyright 2013 Jeremie Roy. All rights reserved. * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#pragma once +#ifndef __FONT_MANAGER_H__ +#define __FONT_MANAGER_H__ + #include #include @@ -200,3 +202,5 @@ private: //temporary buffer to raster glyph uint8_t* m_buffer; }; + +#endif // __FONT_MANAGER_H__ diff --git a/examples/common/font/text_buffer_manager.h b/examples/common/font/text_buffer_manager.h index 9220c0e8..e0225afa 100644 --- a/examples/common/font/text_buffer_manager.h +++ b/examples/common/font/text_buffer_manager.h @@ -1,7 +1,9 @@ /* Copyright 2013 Jeremie Roy. All rights reserved. * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#pragma once +#ifndef __TEXT_BUFFER_MANAGER_H__ +#define __TEXT_BUFFER_MANAGER_H__ + #include "font_manager.h" BGFX_HANDLE(TextBufferHandle); @@ -91,3 +93,5 @@ private: float m_height; float m_width; }; + +#endif // __TEXT_BUFFER_MANAGER_H__