Commit e9182818 authored by captainwong's avatar captainwong

update

parent 9e368a16
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <event2/thread.h> #include <event2/thread.h>
#ifdef ENABLE_BREAKPAD #ifdef ENABLE_BREAKPAD
#if ENABLE_BREAKPAD #if (ENABLE_BREAKPAD==1)
#ifdef _WIN32 #ifdef _WIN32
#include <client/windows/handler/exception_handler.h> #include <client/windows/handler/exception_handler.h>
static bool dumpCallback(const wchar_t* dump_path, static bool dumpCallback(const wchar_t* dump_path,
...@@ -388,7 +388,7 @@ int main(int argc, char** argv) ...@@ -388,7 +388,7 @@ int main(int argc, char** argv)
return -1; return -1;
} }
#ifdef ENABLE_BREAKPAD #ifdef ENABLE_BREAKPAD
#if ENABLE_BREAKPAD #if (ENABLE_BREAKPAD==1)
google_breakpad::ExceptionHandler eh(L"./", // dump_path google_breakpad::ExceptionHandler eh(L"./", // dump_path
nullptr, // FilterCallback nullptr, // FilterCallback
dumpCallback, // MinidumpCallback dumpCallback, // MinidumpCallback
...@@ -403,7 +403,7 @@ int main(int argc, char** argv) ...@@ -403,7 +403,7 @@ int main(int argc, char** argv)
return -1; return -1;
} }
#ifdef ENABLE_BREAKPAD #ifdef ENABLE_BREAKPAD
#if ENABLE_BREAKPAD #if (ENABLE_BREAKPAD==1)
google_breakpad::ExceptionHandler eh(google_breakpad::MinidumpDescriptor("./"), nullptr, dumpCallback, nullptr, true, -1); google_breakpad::ExceptionHandler eh(google_breakpad::MinidumpDescriptor("./"), nullptr, dumpCallback, nullptr, true, -1);
#endif #endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment