Browse Source

Added header guards to ovr.h.

Branimir Karadžić 10 years ago
parent
commit
81c93758e3
2 changed files with 6 additions and 1 deletions
  1. 1 1
      src/amalgamated.cpp
  2. 5 0
      src/ovr.h

+ 1 - 1
src/amalgamated.cpp

@@ -13,7 +13,7 @@
 #include "renderdoc.cpp"
 #include "renderer_d3d9.cpp"
 #include "renderer_d3d11.cpp"
-#include "renderer_d3d11.cpp"
+#include "renderer_d3d12.cpp"
 #include "renderer_null.cpp"
 #include "renderer_gl.cpp"
 #include "renderer_vk.cpp"

+ 5 - 0
src/ovr.h

@@ -3,6 +3,9 @@
  * License: http://www.opensource.org/licenses/BSD-2-Clause
  */
 
+#ifndef BGFX_OVR_H_HEADER_GUARD
+#define BGFX_OVR_H_HEADER_GUARD
+
 #include "bgfx_p.h"
 
 #if BGFX_CONFIG_USE_OVR
@@ -146,3 +149,5 @@ namespace bgfx
 } // namespace bgfx
 
 #endif // BGFX_CONFIG_USE_OVR
+
+#endif // BGFX_OVR_H_HEADER_GUARD