diff --git a/include/bgfx.h b/include/bgfx.h index 056c6ca8..14705cc3 100644 --- a/include/bgfx.h +++ b/include/bgfx.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __BGFX_H__ -#define __BGFX_H__ +#ifndef BGFX_H_HEADER_GUARD +#define BGFX_H_HEADER_GUARD #include // uint32_t #include // size_t @@ -1236,4 +1236,4 @@ namespace bgfx } // namespace bgfx -#endif // __BGFX_H__ +#endif // BGFX_H_HEADER_GUARD diff --git a/include/bgfxplatform.h b/include/bgfxplatform.h index 8b793842..43506171 100755 --- a/include/bgfxplatform.h +++ b/include/bgfxplatform.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __BGFXPLATFORM_H__ -#define __BGFXPLATFORM_H__ +#ifndef BGFX_PLATFORM_H_HEADER_GUARD +#define BGFX_PLATFORM_H_HEADER_GUARD // NOTICE: // This header file contains platform specific interfaces. It is only @@ -141,4 +141,4 @@ namespace bgfx #endif // defined(_SDL_H) -#endif // __BGFXPLATFORM_H__ +#endif // BGFX_PLATFORM_H_HEADER_GUARD diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 675c299a..4d5e7c9f 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __BGFX_P_H__ -#define __BGFX_P_H__ +#ifndef BGFX_P_H_HEADER_GUARD +#define BGFX_P_H_HEADER_GUARD #include "bgfx.h" #include "config.h" @@ -2739,4 +2739,4 @@ namespace bgfx } // namespace bgfx -#endif // __BGFX_P_H__ +#endif // BGFX_P_H_HEADER_GUARD diff --git a/src/config.h b/src/config.h index 3ce580da..40661811 100644 --- a/src/config.h +++ b/src/config.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __CONFIG_H__ -#define __CONFIG_H__ +#ifndef BGFX_CONFIG_H_HEADER_GUARD +#define BGFX_CONFIG_H_HEADER_GUARD #ifndef BGFX_CONFIG_DEBUG # define BGFX_CONFIG_DEBUG 0 @@ -219,4 +219,4 @@ # define BGFX_CONFIG_CLEAR_QUAD (BGFX_CONFIG_RENDERER_DIRECT3D11|BGFX_CONFIG_RENDERER_OPENGL) #endif // BGFX_CONFIG_CLEAR_QUAD -#endif // __CONFIG_H__ +#endif // BGFX_CONFIG_H_HEADER_GUARD diff --git a/src/glcontext_eagl.h b/src/glcontext_eagl.h index 8934022c..9b4da65b 100644 --- a/src/glcontext_eagl.h +++ b/src/glcontext_eagl.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __GLCONTEXT_EAGL_H__ -#define __GLCONTEXT_EAGL_H__ +#ifndef BGFX_GLCONTEXT_EAGL_H_HEADER_GUARD +#define BGFX_GLCONTEXT_EAGL_H_HEADER_GUARD #if BX_PLATFORM_IOS @@ -39,4 +39,4 @@ namespace bgfx #endif // BX_PLATFORM_IOS -#endif // __GLCONTEXT_EAGL_H__ +#endif // BGFX_GLCONTEXT_EAGL_H_HEADER_GUARD diff --git a/src/glcontext_egl.h b/src/glcontext_egl.h index 73cc0337..980d33f4 100644 --- a/src/glcontext_egl.h +++ b/src/glcontext_egl.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __GLCONTEXT_EGL_H__ -#define __GLCONTEXT_EGL_H__ +#ifndef BGFX_GLCONTEXT_EGL_H_HEADER_GUARD +#define BGFX_GLCONTEXT_EGL_H_HEADER_GUARD #if BGFX_USE_EGL @@ -40,4 +40,4 @@ namespace bgfx #endif // BGFX_USE_EGL -#endif // __GLCONTEXT_EGL_H__ +#endif // BGFX_GLCONTEXT_EGL_H_HEADER_GUARD diff --git a/src/glcontext_glx.h b/src/glcontext_glx.h index 2c2e6167..1c552c7d 100644 --- a/src/glcontext_glx.h +++ b/src/glcontext_glx.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __GLCONTEXT_GLX_H__ -#define __GLCONTEXT_GLX_H__ +#ifndef BGFX_GLCONTEXT_GLX_H_HEADER_GUARD +#define BGFX_GLCONTEXT_GLX_H_HEADER_GUARD #if BX_PLATFORM_LINUX @@ -37,4 +37,4 @@ namespace bgfx #endif // BX_PLATFORM_LINUX -#endif // __GLCONTEXT_GLX_H__ +#endif // BGFX_GLCONTEXT_GLX_H_HEADER_GUARD diff --git a/src/glcontext_ios.h b/src/glcontext_ios.h index eba25bd1..d3f36f67 100644 --- a/src/glcontext_ios.h +++ b/src/glcontext_ios.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __GLCONTEXT_NSGL_H__ -#define __GLCONTEXT_NSGL_H__ +#ifndef BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD +#define BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD #if BX_PLATFORM_IOS @@ -35,4 +35,4 @@ namespace bgfx #endif // BX_PLATFORM_IOS -#endif // __GLCONTEXT_NSGL_H__ +#endif // BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD diff --git a/src/glcontext_nsgl.h b/src/glcontext_nsgl.h index 362c144b..73197608 100644 --- a/src/glcontext_nsgl.h +++ b/src/glcontext_nsgl.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __GLCONTEXT_NSGL_H__ -#define __GLCONTEXT_NSGL_H__ +#ifndef BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD +#define BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD #if BX_PLATFORM_OSX @@ -35,4 +35,4 @@ namespace bgfx #endif // BX_PLATFORM_OSX -#endif // __GLCONTEXT_NSGL_H__ +#endif // BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD diff --git a/src/glcontext_ppapi.h b/src/glcontext_ppapi.h index 937e0155..aa1dcd71 100644 --- a/src/glcontext_ppapi.h +++ b/src/glcontext_ppapi.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __GLCONTEXT_PPAPI_H__ -#define __GLCONTEXT_PPAPI_H__ +#ifndef BGFX_GLCONTEXT_PPAPI_H_HEADER_GUARD +#define BGFX_GLCONTEXT_PPAPI_H_HEADER_GUARD #if BX_PLATFORM_NACL @@ -32,4 +32,4 @@ namespace bgfx #endif // BX_PLATFORM_NACL -#endif // __GLCONTEXT_PPAPI_H__ +#endif // BGFX_GLCONTEXT_PPAPI_H_HEADER_GUARD diff --git a/src/glcontext_wgl.h b/src/glcontext_wgl.h index 4a1ed693..0cb10cea 100644 --- a/src/glcontext_wgl.h +++ b/src/glcontext_wgl.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __GLCONTEXT_WGL_H__ -#define __GLCONTEXT_WGL_H__ +#ifndef BGFX_GLCONTEXT_WGL_H_HEADER_GUARD +#define BGFX_GLCONTEXT_WGL_H_HEADER_GUARD #if BGFX_USE_WGL @@ -83,4 +83,4 @@ namespace bgfx #endif // BGFX_USE_WGL -#endif // __GLCONTEXT_WGL_H__ +#endif // BGFX_GLCONTEXT_WGL_H_HEADER_GUARD diff --git a/src/image.h b/src/image.h index c7392c9c..9738fcdd 100644 --- a/src/image.h +++ b/src/image.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __IMAGE_H__ -#define __IMAGE_H__ +#ifndef BGFX_IMAGE_H_HEADER_GUARD +#define BGFX_IMAGE_H_HEADER_GUARD #include @@ -74,4 +74,4 @@ namespace bgfx } // namespace bgfx -#endif // __IMAGE_H__ +#endif // BGFX_IMAGE_H_HEADER_GUARD diff --git a/src/renderer_d3d.h b/src/renderer_d3d.h index 4cd6a4e6..9a8d72e0 100644 --- a/src/renderer_d3d.h +++ b/src/renderer_d3d.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __RENDERER_D3D_H__ -#define __RENDERER_D3D_H__ +#ifndef BGFX_RENDERER_D3D_H_HEADER_GUARD +#define BGFX_RENDERER_D3D_H_HEADER_GUARD #if BGFX_CONFIG_DEBUG && BGFX_CONFIG_RENDERER_DIRECT3D9 && !(BX_COMPILER_GCC || BX_COMPILER_CLANG) # include @@ -87,4 +87,4 @@ namespace bgfx } // namespace bgfx -#endif // __RENDERER_D3D_H__ +#endif // BGFX_RENDERER_D3D_H_HEADER_GUARD diff --git a/src/renderer_d3d11.h b/src/renderer_d3d11.h index 8a5f3f39..a08436da 100644 --- a/src/renderer_d3d11.h +++ b/src/renderer_d3d11.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __RENDERER_D3D11_H__ -#define __RENDERER_D3D11_H__ +#ifndef BGFX_RENDERER_D3D11_H_HEADER_GUARD +#define BGFX_RENDERER_D3D11_H_HEADER_GUARD #define D3D11_NO_HELPERS #include @@ -309,4 +309,4 @@ namespace bgfx } // namespace bgfx -#endif // __RENDERER_D3D11_H__ +#endif // BGFX_RENDERER_D3D11_H_HEADER_GUARD diff --git a/src/renderer_d3d9.h b/src/renderer_d3d9.h index 8fa693eb..9227f926 100644 --- a/src/renderer_d3d9.h +++ b/src/renderer_d3d9.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __RENDERER_D3D9_H__ -#define __RENDERER_D3D9_H__ +#ifndef BGFX_RENDERER_D3D9_H_HEADER_GUARD +#define BGFX_RENDERER_D3D9_H_HEADER_GUARD #define BGFX_CONFIG_RENDERER_DIRECT3D9EX (BX_PLATFORM_WINDOWS && 0) @@ -388,4 +388,4 @@ namespace bgfx } // namespace bgfx -#endif // __RENDERER_D3D9_H__ +#endif // BGFX_RENDERER_D3D9_H_HEADER_GUARD diff --git a/src/renderer_gl.h b/src/renderer_gl.h index 618dcc9d..62a1dc9c 100644 --- a/src/renderer_gl.h +++ b/src/renderer_gl.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __RENDERER_GL_H__ -#define __RENDERER_GL_H__ +#ifndef BGFX_RENDERER_GL_H_HEADER_GUARD +#define BGFX_RENDERER_GL_H_HEADER_GUARD #define BGFX_USE_EGL 0 #define BGFX_USE_WGL 0 @@ -743,4 +743,4 @@ namespace bgfx } // namespace bgfx -#endif // __RENDERER_GL_H__ +#endif // BGFX_RENDERER_GL_H_HEADER_GUARD diff --git a/src/vertexdecl.h b/src/vertexdecl.h index 31346b75..425fc799 100644 --- a/src/vertexdecl.h +++ b/src/vertexdecl.h @@ -3,8 +3,8 @@ * License: http://www.opensource.org/licenses/BSD-2-Clause */ -#ifndef __VERTEXDECL_H__ -#define __VERTEXDECL_H__ +#ifndef BGFX_VERTEXDECL_H_HEADER_GUARD +#define BGFX_VERTEXDECL_H_HEADER_GUARD #include @@ -18,4 +18,4 @@ namespace bgfx } // namespace bgfx -#endif // __VERTEXDECL_H__ +#endif // BGFX_VERTEXDECL_H_HEADER_GUARD