aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-24 08:03:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-24 08:03:11 +0000
commit4f1d81c4ce89440bd2f155cbb8002b622f13ce0b (patch)
treeb6862ef6cfbcc7f15d3c5740b30ed3798e3546a3 /tmux.h
parent90400ae96ab433a915d9e1a8b6df6a640c6fd7cd (diff)
downloadrtmux-4f1d81c4ce89440bd2f155cbb8002b622f13ce0b.tar.gz
rtmux-4f1d81c4ce89440bd2f155cbb8002b622f13ce0b.tar.bz2
rtmux-4f1d81c4ce89440bd2f155cbb8002b622f13ce0b.zip
gcc2 doesn't understand attributes on function pointers.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index a2d01ea0..1f3cf74d 100644
--- a/tmux.h
+++ b/tmux.h
@@ -990,9 +990,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 {