ref: 5fc29f7717e8c7b23c3c2debfa37a4ea5aef340f
parent: 249d345ed436c32a2013cb6917a5f8f36aa656b2
author: Simon Tatham <anakin@pobox.com>
date: Fri Jun 24 07:05:43 EDT 2005
Change the preprocessor symbol `DEBUG' to `DEBUGGING', since the former is automatically defined by Cygwin. [originally from svn r6007]
--- a/puzzles.h
+++ b/puzzles.h
@@ -122,7 +122,8 @@
* Platform routines
*/
-#ifdef DEBUG
+/* We can't use #ifdef DEBUG, because Cygwin defines it by default. */
+#ifdef DEBUGGING
#define debug(x) (debug_printf x)
void debug_printf(char *fmt, ...);
#else
--- a/windows.c
+++ b/windows.c
@@ -33,7 +33,7 @@
#define HELP_FILE_NAME "puzzles.hlp"
#define HELP_CNT_NAME "puzzles.cnt"
-#ifdef DEBUG
+#ifdef DEBUGGING
static FILE *debug_fp = NULL;
static HANDLE debug_hdl = INVALID_HANDLE_VALUE;
static int debug_got_console = 0;