mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 17:39:09 +00:00
Perform some black and midnight cpp witchcraft to get rid of GRID_DEBUG, to fix
building with -DDEBUG on gcc2 platforms. From joshe.
This commit is contained in:
parent
850965584e
commit
d8a35ffa50
6
tmux.h
6
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>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -462,7 +462,9 @@ struct mode_key_data {
|
|||||||
#define MODE_MOUSE 0x10
|
#define MODE_MOUSE 0x10
|
||||||
|
|
||||||
/* Grid output. */
|
/* 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) " \
|
#define GRID_DEBUG(gd, fmt, ...) log_debug3("%s: (sx=%u, sy=%u, hsize=%u) " \
|
||||||
fmt, __func__, (gd)->sx, (gd)->sy, (gd)->hsize, ## __VA_ARGS__)
|
fmt, __func__, (gd)->sx, (gd)->sy, (gd)->hsize, ## __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user