mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Using language compliant header guards.
This commit is contained in:
parent
11f2bf53db
commit
fce9692557
17 changed files with 51 additions and 51 deletions
|
@ -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 <stdint.h> // uint32_t
|
||||
#include <stdlib.h> // size_t
|
||||
|
@ -1236,4 +1236,4 @@ namespace bgfx
|
|||
|
||||
} // namespace bgfx
|
||||
|
||||
#endif // __BGFX_H__
|
||||
#endif // BGFX_H_HEADER_GUARD
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 <stdint.h>
|
||||
|
||||
|
@ -74,4 +74,4 @@ namespace bgfx
|
|||
|
||||
} // namespace bgfx
|
||||
|
||||
#endif // __IMAGE_H__
|
||||
#endif // BGFX_IMAGE_H_HEADER_GUARD
|
||||
|
|
|
@ -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 <sal.h>
|
||||
|
@ -87,4 +87,4 @@ namespace bgfx
|
|||
|
||||
} // namespace bgfx
|
||||
|
||||
#endif // __RENDERER_D3D_H__
|
||||
#endif // BGFX_RENDERER_D3D_H_HEADER_GUARD
|
||||
|
|
|
@ -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 <d3d11.h>
|
||||
|
@ -309,4 +309,4 @@ namespace bgfx
|
|||
|
||||
} // namespace bgfx
|
||||
|
||||
#endif // __RENDERER_D3D11_H__
|
||||
#endif // BGFX_RENDERER_D3D11_H_HEADER_GUARD
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 <bgfx.h>
|
||||
|
||||
|
@ -18,4 +18,4 @@ namespace bgfx
|
|||
|
||||
} // namespace bgfx
|
||||
|
||||
#endif // __VERTEXDECL_H__
|
||||
#endif // BGFX_VERTEXDECL_H_HEADER_GUARD
|
||||
|
|
Loading…
Reference in a new issue