comparison lwlib/lw_cmdline.h @ 374:8e25147c2aa8

Clean up various "externs" Apparently some compilers seriously choke on the "extern" keyword in some circumstances where GCC does not. Remove most instances of "extern" to guard against that. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 20:31:56 -0600
parents 8ae2670377ca
children
comparison
equal deleted inserted replaced
373:00fced888c5d 374:8e25147c2aa8
68 char *args_doc; 68 char *args_doc;
69 char *doc; 69 char *doc;
70 char *program_version; 70 char *program_version;
71 }; 71 };
72 72
73 #ifdef ___lw_cmdline_c_seen___ 73 int lw_cmdline_parse(struct lw_cmdline_parser *parser, int argc, char **argv, unsigned flags, int *arg_index, void *input);
74
75 #else /* def ___lw_cmdline_c_seen___ */
76
77 extern int lw_cmdline_parse(struct lw_cmdline_parser *parser, int argc, char **argv, unsigned flags, int *arg_index, void *input);
78
79
80 #endif /* def ___lw_cmdline_c_seen___ */
81 74
82 #endif /* ___lw_cmdline_h_seen___ */ 75 #endif /* ___lw_cmdline_h_seen___ */