mirror of
https://github.com/tmux/tmux.git
synced 2025-04-24 13:28:49 +00:00
gcc2 doesn't understand attributes on function pointers.
This commit is contained in:
parent
90400ae96a
commit
4f1d81c4ce
7
tmux.h
7
tmux.h
@ -990,9 +990,16 @@ struct cmd_ctx {
|
|||||||
|
|
||||||
struct msg_command_data *msgdata;
|
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 (*print)(struct cmd_ctx *, const char *, ...);
|
||||||
void printflike2 (*info)(struct cmd_ctx *, const char *, ...);
|
void printflike2 (*info)(struct cmd_ctx *, const char *, ...);
|
||||||
void printflike2 (*error)(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 {
|
struct cmd {
|
||||||
|
Loading…
Reference in New Issue
Block a user