2
0
Эх сурвалжийг харах

convert pragma once to include guards

Jeremie Roy 12 жил өмнө
parent
commit
fe41a9f6b8

+ 0 - 1
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 <bx/bx.h>
 #include <bgfx.h> 

+ 4 - 2
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 ([email protected])
@@ -130,4 +131,5 @@ private:
 	AtlasRegion* m_regions;	
 	uint8_t* m_textureBuffer;
 
-};
+};
+#endif // __CUBE_ATLAS_H__

+ 5 - 1
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 <bgfx.h>
 #include <bx/handlealloc.h>
 
@@ -200,3 +202,5 @@ private:
 	//temporary buffer to raster glyph
 	uint8_t* m_buffer;	
 };
+
+#endif // __FONT_MANAGER_H__

+ 5 - 1
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__