mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Sync OpenBSD patchset 293:
gcc2 doesn't understand attributes on function pointers.
This commit is contained in:
parent
22b2b7c6c5
commit
c1653ff654
9
tmux.h
9
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>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -988,9 +988,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…
x
Reference in New Issue
Block a user