Mercurial > hg > index.cgi
comparison lwlib/lw_error.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 | 2c24602be78f |
children |
comparison
equal
deleted
inserted
replaced
373:00fced888c5d | 374:8e25147c2aa8 |
---|---|
20 */ | 20 */ |
21 | 21 |
22 #ifndef ___lw_error_h_seen___ | 22 #ifndef ___lw_error_h_seen___ |
23 #define ___lw_error_h_seen___ | 23 #define ___lw_error_h_seen___ |
24 | 24 |
25 | 25 void lw_error(const char *fmt, ...); |
26 #ifdef ___lw_error_c_seen___ | 26 void lw_error_setfunc(void (*f)(const char *fmt, ...)); |
27 | |
28 #else /* def ___lw_error_c_seen___ */ | |
29 | |
30 extern void lw_error(const char *fmt, ...); | |
31 extern void lw_error_setfunc(void (*f)(const char *fmt, ...)); | |
32 #endif /* def ___lw_error_c_seen___ */ | |
33 | 27 |
34 #endif /* ___lw_error_h_seen___ */ | 28 #endif /* ___lw_error_h_seen___ */ |