Skip to content
Snippets Groups Projects
Commit 861c5bc2 authored by Chang Gao's avatar Chang Gao
Browse files

Remove unnecessary macro

parent 28695973
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include <lava/objects/Image.hh> #include <lava/objects/Image.hh>
#include <lava/objects/Instance.hh> #include <lava/objects/Instance.hh>
#undef near // Solve macro conflict with minwindef.h
namespace lava { namespace lava {
namespace openvr { namespace openvr {
......
  • Developer

    The macro is not unnecessary. When compiling on a windows computer, we get a define "near" from minwindef.h, which is indirectly included by vulkan.h -> vulkan.hh -> windows.h -> windef.h -> minwindef.h

    renaming "near" to "n" solves the conflict without undefing a variable.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment