aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-11-23 19:38:12 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-11-23 19:38:12 +0000
commit8bef3adc8348b979f54e6c25ddc0c2f15e1821d1 (patch)
tree40a9ba03adab0e604ca9b2364090fd60b110d652
parentcb3f4ed6fe190a7e004e3f3348b35b18415e7cce (diff)
downloadrtmux-8bef3adc8348b979f54e6c25ddc0c2f15e1821d1.tar.gz
rtmux-8bef3adc8348b979f54e6c25ddc0c2f15e1821d1.tar.bz2
rtmux-8bef3adc8348b979f54e6c25ddc0c2f15e1821d1.zip
Fix build on sparc.
-rw-r--r--Makefile4
-rw-r--r--tmux.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2ada4b8d..3e861fab 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.75 2008-09-25 20:08:51 nicm Exp $
+# $Id: Makefile,v 1.76 2008-11-23 19:38:12 nicm Exp $
.SUFFIXES: .c .o .y .h
.PHONY: clean update-index.html upload-index.html
@@ -11,7 +11,7 @@ REL!= uname -r
DATE!= date +%Y%m%d-%H%M
# This must be empty as OpenBSD includes it in default CFLAGS.
-DEBUG=
+#DEBUG=
META?= \002 # C-b
diff --git a/tmux.h b/tmux.h
index eb93f5ee..9d178a26 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.198 2008-11-17 18:56:36 nicm Exp $ */
+/* $Id: tmux.h,v 1.199 2008-11-23 19:38:12 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -407,8 +407,12 @@ struct msg_resize_data {
#define MODE_MOUSE 0x10
/* Grid output. */
+#ifdef DEBUG
#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
+#define GRID_DEBUG(...)
+#endif
/* Grid attributes. */
#define GRID_ATTR_BRIGHT 0x1