comparison lwlib/lw_string.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 d9d02dbf76a6
children
comparison
equal deleted inserted replaced
373:00fced888c5d 374:8e25147c2aa8
20 */ 20 */
21 21
22 #ifndef ___lw_string_h_seen___ 22 #ifndef ___lw_string_h_seen___
23 #define ___lw_string_h_seen___ 23 #define ___lw_string_h_seen___
24 24
25 25 char *lw_strdup(const char *s);
26 #ifdef ___lw_string_c_seen___ 26 char *lw_strndup(const char *s, int len);
27 27 char *lw_token(const char *s, int sep, const char **ap);
28 #else /* def ___lw_string_c_seen___ */
29
30 extern char *lw_strdup(const char *s);
31 extern char *lw_strndup(const char *s, int len);
32 extern char *lw_token(const char *s, int sep, const char **ap);
33
34 #endif /* def ___lw_string_c_seen___ */
35 28
36 #endif /* ___lw_string_h_seen___ */ 29 #endif /* ___lw_string_h_seen___ */