diff --git a/src/config.h b/src/config.h index 2f35459b..ffed9914 100644 --- a/src/config.h +++ b/src/config.h @@ -6,6 +6,8 @@ #ifndef BGFX_CONFIG_H_HEADER_GUARD #define BGFX_CONFIG_H_HEADER_GUARD +#include + #ifndef BGFX_CONFIG_DEBUG # define BGFX_CONFIG_DEBUG 0 #endif // BGFX_CONFIG_DEBUG diff --git a/src/glcontext_ppapi.cpp b/src/glcontext_ppapi.cpp index 43f70af7..ca47417d 100644 --- a/src/glcontext_ppapi.cpp +++ b/src/glcontext_ppapi.cpp @@ -5,7 +5,7 @@ #include "bgfx_p.h" -#if BX_PLATFORM_NACL & (BGFX_CONFIG_RENDERER_OPENGLES|BGFX_CONFIG_RENDERER_OPENGL) +#if BX_PLATFORM_NACL && (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL) # include # include "renderer_gl.h" @@ -174,4 +174,4 @@ namespace bgfx } // namespace bgfx -#endif // BX_PLATFORM_NACL & (BGFX_CONFIG_RENDERER_OPENGLES|BGFX_CONFIG_RENDERER_OPENGL) +#endif // BX_PLATFORM_NACL && (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 77670a8d..6c453211 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -5,7 +5,7 @@ #include "bgfx_p.h" -#if (BGFX_CONFIG_RENDERER_OPENGLES|BGFX_CONFIG_RENDERER_OPENGL) +#if (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL) # include "renderer_gl.h" # include # include @@ -4846,4 +4846,4 @@ namespace bgfx } } // namespace bgfx -#endif // (BGFX_CONFIG_RENDERER_OPENGLES|BGFX_CONFIG_RENDERER_OPENGL) +#endif // (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL)