blind attempt to fix Windows build
This commit is contained in:
14
src/end.c
14
src/end.c
@@ -51,15 +51,15 @@ ATTRNORETURN extern void nethack_exit(int) NORETURN;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AMIGA
|
#ifdef AMIGA
|
||||||
#define NH_abort_() Abort(0)
|
#define NH_abort_ Abort(0)
|
||||||
#else
|
#else
|
||||||
#ifdef SYSV
|
#ifdef SYSV
|
||||||
#define NH_abort_() (void) abort()
|
#define NH_abort_ (void) abort()
|
||||||
#else
|
#else
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#define NH_abort_() win32_abort()
|
#define NH_abort_ win32_abort()
|
||||||
#else
|
#else
|
||||||
#define NH_abort_() abort()
|
#define NH_abort_ abort()
|
||||||
#endif
|
#endif
|
||||||
#endif /* !SYSV */
|
#endif /* !SYSV */
|
||||||
#endif /* !AMIGA */
|
#endif /* !AMIGA */
|
||||||
@@ -98,7 +98,9 @@ ATTRNORETURN extern void nethack_exit(int) NORETURN;
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef PANICTRACE
|
||||||
static void NH_abort(char *);
|
static void NH_abort(char *);
|
||||||
|
#endif
|
||||||
#ifndef NO_SIGNAL
|
#ifndef NO_SIGNAL
|
||||||
static void panictrace_handler(int);
|
static void panictrace_handler(int);
|
||||||
#endif
|
#endif
|
||||||
@@ -169,6 +171,7 @@ panictrace_setsignals(boolean set)
|
|||||||
}
|
}
|
||||||
#endif /* NO_SIGNAL */
|
#endif /* NO_SIGNAL */
|
||||||
|
|
||||||
|
#ifdef PANICTRACE
|
||||||
static void
|
static void
|
||||||
NH_abort(char *why)
|
NH_abort(char *why)
|
||||||
{
|
{
|
||||||
@@ -204,8 +207,9 @@ NH_abort(char *why)
|
|||||||
#ifndef NO_SIGNAL
|
#ifndef NO_SIGNAL
|
||||||
panictrace_setsignals(FALSE);
|
panictrace_setsignals(FALSE);
|
||||||
#endif
|
#endif
|
||||||
NH_abort_();
|
NH_abort_;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Build a URL with a query string and try to launch a new browser window
|
/* Build a URL with a query string and try to launch a new browser window
|
||||||
* to report from panic() or impossible(). Requires libc support for
|
* to report from panic() or impossible(). Requires libc support for
|
||||||
|
|||||||
Reference in New Issue
Block a user