gcc2 doesn't understand attributes on function pointers.

pull/1/head
Nicholas Marriott 2009-08-24 08:03:11 +00:00
parent 90400ae96a
commit 4f1d81c4ce
1 changed files with 7 additions and 0 deletions

7
tmux.h
View File

@ -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 {