diff 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
line wrap: on
line diff
--- a/lwlib/lw_string.h	Wed Jun 24 19:39:13 2015 -0600
+++ b/lwlib/lw_string.h	Mon Jul 13 20:31:56 2015 -0600
@@ -22,15 +22,8 @@
 #ifndef ___lw_string_h_seen___
 #define ___lw_string_h_seen___
 
-
-#ifdef ___lw_string_c_seen___
-
-#else /* def ___lw_string_c_seen___ */
-
-extern char *lw_strdup(const char *s);
-extern char *lw_strndup(const char *s, int len);
-extern char *lw_token(const char *s, int sep, const char **ap);
-
-#endif /* def ___lw_string_c_seen___ */
+char *lw_strdup(const char *s);
+char *lw_strndup(const char *s, int len);
+char *lw_token(const char *s, int sep, const char **ap);
 
 #endif /* ___lw_string_h_seen___ */