chiark / gitweb /
Change the preprocessor symbol `DEBUG' to `DEBUGGING', since the
authorSimon Tatham <anakin@pobox.com>
Fri, 24 Jun 2005 11:05:43 +0000 (11:05 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 24 Jun 2005 11:05:43 +0000 (11:05 +0000)
former is automatically defined by Cygwin.

[originally from svn r6007]

puzzles.h
windows.c

index 0bdb581b78476856d7c54770bbec77e40ff96850..09848d7b8f1156c4a632cdac2f7c34b9ff0ada40 100644 (file)
--- a/puzzles.h
+++ b/puzzles.h
@@ -122,7 +122,8 @@ struct config_item {
  * 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
index 0cf81489a8cd5e3e94c88ba5a4fbb7de66e1c297..67469b1c8a86f040092cdef98b8ab65d288507b3 100644 (file)
--- 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;