From: nhmall Date: Thu, 3 Dec 2015 04:19:04 +0000 (-0500) Subject: windows build without DEBUG defined in global.h X-Git-Tag: NetHack-3.6.0_RC02~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bd70be165d12d1a667801cf6c4956367d56a332;p=nethack windows build without DEBUG defined in global.h Changes to be committed: modified: include/global.h modified: sys/share/pcmain.c modified: win/win32/mswproc.c --- diff --git a/include/global.h b/include/global.h index 73a2c1802..b7a61bd16 100644 --- a/include/global.h +++ b/include/global.h @@ -1,4 +1,4 @@ -/* NetHack 3.6 global.h $NHDT-Date: 1432512780 2015/05/25 00:13:00 $ $NHDT-Branch: master $:$NHDT-Revision: 1.44 $ */ +/* NetHack 3.6 global.h $NHDT-Date: 1449116298 2015/12/03 04:18:18 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.46 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -7,9 +7,9 @@ #include -/* #define BETA /* development or beta testing [MRS] */ +/* #define BETA */ /* development or beta testing [MRS] */ -#define DEBUG +/* #define DEBUG */ /* * Files expected to exist in the playground directory. diff --git a/sys/share/pcmain.c b/sys/share/pcmain.c index 5a78fb696..0276d61f8 100644 --- a/sys/share/pcmain.c +++ b/sys/share/pcmain.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 pcmain.c $NHDT-Date: 1434999947 2015/06/22 19:05:47 $ $NHDT-Branch: master $:$NHDT-Revision: 1.65 $ */ +/* NetHack 3.6 pcmain.c $NHDT-Date: 1449116336 2015/12/03 04:18:56 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.66 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -123,6 +123,7 @@ char *argv[]; boolean resuming = FALSE; /* assume new game */ #ifdef _MSC_VER +# ifdef DEBUG /* set these appropriately for VS debugging */ _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_DEBUG); _CrtSetReportMode(_CRT_ERROR, @@ -132,6 +133,7 @@ char *argv[]; /* use STDERR by default _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR); _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/ +# endif #endif #if defined(__BORLANDC__) && !defined(_WIN32) diff --git a/win/win32/mswproc.c b/win/win32/mswproc.c index f4eb6a0fb..7bd28ebbe 100644 --- a/win/win32/mswproc.c +++ b/win/win32/mswproc.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 mswproc.c $NHDT-Date: 1433806620 2015/06/08 23:37:00 $ $NHDT-Branch: master $:$NHDT-Revision: 1.90 $ */ +/* NetHack 3.6 mswproc.c $NHDT-Date: 1449116317 2015/12/03 04:18:37 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.93 $ */ /* Copyright (C) 2001 by Alex Kompel */ /* NetHack may be freely redistributed. See license for details. */ @@ -31,9 +31,11 @@ #define NHTRACE_LOG "nhtrace.log" -#ifdef _DEBUG +#ifdef DEBUG +# ifdef _DEBUG static FILE* _s_debugfp = NULL; extern void logDebug(const char *fmt, ...); +# endif #else void logDebug(const char *fmt, ...)