Skip to content

Commit

Permalink
fix: ensure near and far symbols don't overlap with windows crap
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Sep 5, 2024
1 parent 3ea6064 commit f22c628
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Renderer/EditorLayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
#include "../Runtime/Rigidbody2DComponent.hh"

extern "C" {
// NOTE: @raysan5 fixed this issue on raylib's commit `3801819` (2024/06/06).
// Commit diff: https://github.com/raysan5/raylib/commit/38018192b8055024c4aa9b041943aa4e85bdd773
// Issue: https://www.reddit.com/r/raylib/comments/1d8m52k/question_why_does_including_raymathh_make_my
#ifdef near
#undef near
#endif
#ifdef far
#undef far
#endif
#include <raymath.h>
}

Expand Down

0 comments on commit f22c628

Please sign in to comment.