aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-25 13:11:24 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-25 13:11:24 +0000
commitc1653ff65452c01f0c2c41dbcb3c6d0eb241348b (patch)
tree809caa9ea469b58eda463fabf95e13b4949b6483
parent22b2b7c6c5b98730a8231ca277a4d9ff7f74858e (diff)
downloadrtmux-c1653ff65452c01f0c2c41dbcb3c6d0eb241348b.tar.gz
rtmux-c1653ff65452c01f0c2c41dbcb3c6d0eb241348b.tar.bz2
rtmux-c1653ff65452c01f0c2c41dbcb3c6d0eb241348b.zip
Sync OpenBSD patchset 293:
gcc2 doesn't understand attributes on function pointers.
-rw-r--r--tmux.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 77845326..1057cd48 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.427 2009-08-24 16:27:03 tcunha Exp $ */
+/* $Id: tmux.h,v 1.428 2009-08-25 13:11:24 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -988,9 +988,16 @@ struct cmd_ctx {
struct msg_command_data *msgdata;
+ /* gcc2 doesn't understand attributes on function pointers... */
+#if defined(__GNUC__) && __GNUC__ >= 3
void printflike2 (*print)(struct cmd_ctx *, const char *, ...);
void printflike2 (*info)(struct cmd_ctx *, const char *, ...);
void printflike2 (*error)(struct cmd_ctx *, const char *, ...);
+#else
+ void (*print)(struct cmd_ctx *, const char *, ...);
+ void (*info)(struct cmd_ctx *, const char *, ...);
+ void (*error)(struct cmd_ctx *, const char *, ...);
+#endif
};
struct cmd {