Skip to content

Commit

Permalink
there is _DEBUG flag for debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
HarpyWar committed Oct 25, 2014
1 parent 245c871 commit 1fe8751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/win32/winmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <cstdio>
#include <windows.h>
#if DEBUG
#if _DEBUG
#include <dbghelp.h>
#endif
#include <windowsx.h>
Expand Down Expand Up @@ -827,7 +827,7 @@ namespace pvpgn

}

#if DEBUG
#if _DEBUG
void make_minidump(EXCEPTION_POINTERS* e)
{
auto hDbgHelp = LoadLibraryA("dbghelp");
Expand Down Expand Up @@ -883,7 +883,7 @@ using namespace pvpgn::bnetd;

int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE reserved, LPSTR lpCmdLine, int nCmdShow)
{
#if DEBUG
#if _DEBUG
SetUnhandledExceptionFilter(unhandled_handler);
#endif
int result;
Expand Down

0 comments on commit 1fe8751

Please sign in to comment.