From 85192be5957499d900ad8ce1a3c46613e49e7210 Mon Sep 17 00:00:00 2001 From: Damiano <54273858+ienapliss@users.noreply.github.com> Date: Mon, 27 Jan 2020 00:12:01 +0100 Subject: [PATCH] for mingw --- src/nvcore/Debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvcore/Debug.cpp b/src/nvcore/Debug.cpp index 38429e9..38774c1 100644 --- a/src/nvcore/Debug.cpp +++ b/src/nvcore/Debug.cpp @@ -1,4 +1,4 @@ -// This code is in the public domain -- Ignacio Castaño +// This code is in the public domain -- Ignacio Castaño #include "Debug.h" #include "Array.inl" @@ -949,7 +949,7 @@ int nvAbort(const char * exp, const char * file, int line, const char * func/*=N // Abnormal termination. Create mini dump and output call stack. void debug::terminate(int code) { -#if NV_OS_WIN32 +#if NV_OS_WIN32 && NV_CC_MSVC EnterCriticalSection(&s_handler_critical_section); writeMiniDump(NULL);