Clean up code by removing pre-C99 struct hack preprocessor magic.
Approved by: randi (maintainer)
This commit is contained in:
parent
e6ec2d1fa6
commit
e0d554dbde
@ -228,13 +228,7 @@ typedef struct _dmenu {
|
||||
char *prompt; /* Our prompt */
|
||||
char *helpline; /* Line of help at bottom */
|
||||
char *helpfile; /* Help file for "F1" */
|
||||
#if (__STDC_VERSION__ >= 199901L) || (__GNUC__ >= 3)
|
||||
dialogMenuItem items[]; /* Array of menu items */
|
||||
#elif __GNUC__
|
||||
dialogMenuItem items[0]; /* Array of menu items */
|
||||
#else
|
||||
#error "Create hack for C89 and K&R compilers."
|
||||
#endif
|
||||
} DMenu;
|
||||
|
||||
/* An rc.conf variable */
|
||||
|
Loading…
x
Reference in New Issue
Block a user