summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-29 00:10:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-10-29 00:10:07 +0100
commit9df6326873b84899433bc324de647f18f1bbca5c (patch)
tree8d6d647af21c4b7971272988cd12ca2330d8e54f /facetracknoir
parent2a25e74721d0e014d8386f5c23e7d882ed47aa52 (diff)
conditionalize breakpad for MSVC only, broken on mingw
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index e059090d..e643bcd3 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -29,7 +29,7 @@
#include <QDebug>
#include <QList>
-#if defined(_WIN32)
+#if defined(_WIN32) && defined(_MSC_VER)
# include <windows.h>
# ifdef OPENTRACK_BREAKPAD
# include <exception_handler.h>
@@ -54,7 +54,7 @@ bool dumpCallback(const wchar_t* dump_path,
int main(int argc, char** argv)
{
-#ifdef OPENTRACK_BREAKPAD
+#if defined(OPENTRACK_BREAKPAD) && defined(_MSC_VER)
auto handler = new ExceptionHandler(L".", nullptr, dumpCallback, nullptr, -1);
#endif
QApplication::setAttribute(Qt::AA_X11InitThreads, true);