Skip to content

Commit

Permalink
Prevent macro redefinitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Dec 6, 2015
1 parent d663c41 commit 44a7046
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/xrCore/Debug/dxerr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
#include <d3d9.h>
#include <audiodefs.h>
#include <dsound.h>

#ifndef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x800
#endif
#include <dinput.h>
#include <dinputd.h>
#endif
Expand Down Expand Up @@ -136,6 +137,11 @@ const CHAR* WINAPI DXGetErrorStringA( _In_ HRESULT hr )
#undef CHK_ERR_WIN32A
#undef CHK_ERR_WIN32_ONLY

#undef CHK_ERRA_W
#undef CHK_ERR_W
#undef CHK_ERRA_A
#undef CHK_ERR_A

#define CHK_ERRA_W(hrchk) \
case hrchk: \
wcscpy_s( desc, count, L#hrchk );
Expand Down

0 comments on commit 44a7046

Please sign in to comment.