fix debug:dumpInfo, backtrace is not available on win32.

This commit is contained in:
castano 2007-05-30 08:52:35 +00:00
parent b982303e99
commit 337d0f832f

View File

@ -420,7 +420,7 @@ void NV_CDECL nvDebug(const char *msg, ...)
/// Dump debug info.
void debug::dumpInfo()
{
#if defined(HAVE_EXECINFO_H)
#if !NV_OS_WIN32 && defined(HAVE_SIGNAL_H) && defined(HAVE_EXECINFO_H)
void * trace[64];
int size = backtrace(trace, 64);
nvPrintStackTrace(trace, size, 1);