Skip to content

Commit

Permalink
fix: xbyak brings in <Windows.h> (#55)
Browse files Browse the repository at this point in the history
Rather annoyingly xbyak brings in <Windows.h>
  • Loading branch information
qudix authored Sep 15, 2023
1 parent 1a838c0 commit 30f21f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CommonLibSF/src/SFSE/Trampoline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

#include "SFSE/Logger.h"

// xbyak brings in <Windows.h>
#ifdef SFSE_SUPPORT_XBYAK
# include <xbyak/xbyak.h>
#define NOMINMAX
#include <xbyak/xbyak.h>
#undef MEM_COMMIT
#undef MEM_FREE
#undef MEM_RESERVE
#undef PAGE_EXECUTE_READWRITE
#endif

namespace SFSE
Expand Down

0 comments on commit 30f21f6

Please sign in to comment.