aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-04-27 14:51:59 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-04-27 14:51:59 +0000
commitd8a35ffa500deb8b00d9669b7e490e705c54c748 (patch)
treebb24157624b1c76f412c1f202625d872118c75d4 /tmux.h
parent850965584e322d8436dfa82990f87d24b2ed4da8 (diff)
downloadrtmux-d8a35ffa500deb8b00d9669b7e490e705c54c748.tar.gz
rtmux-d8a35ffa500deb8b00d9669b7e490e705c54c748.tar.bz2
rtmux-d8a35ffa500deb8b00d9669b7e490e705c54c748.zip
Perform some black and midnight cpp witchcraft to get rid of GRID_DEBUG, to fix
building with -DDEBUG on gcc2 platforms. From joshe.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index ec9ba670..c8cc4ac6 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.301 2009-04-27 13:21:16 tcunha Exp $ */
+/* $Id: tmux.h,v 1.302 2009-04-27 14:51:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -462,7 +462,9 @@ struct mode_key_data {
#define MODE_MOUSE 0x10
/* Grid output. */
-#ifdef DEBUG
+#if defined(DEBUG) && \
+ ((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
+ (defined(__GNUC__) && __GNUC__ >= 3))
#define GRID_DEBUG(gd, fmt, ...) log_debug3("%s: (sx=%u, sy=%u, hsize=%u) " \
fmt, __func__, (gd)->sx, (gd)->sy, (gd)->hsize, ## __VA_ARGS__)
#else