diff lwlib/lw_alloc.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_alloc.h	Wed Jun 24 19:39:13 2015 -0600
+++ b/lwlib/lw_alloc.h	Mon Jul 13 20:31:56 2015 -0600
@@ -22,21 +22,8 @@
 #ifndef ___lw_alloc_h_seen___
 #define ___lw_alloc_h_seen___
 
-
-#ifdef ___lw_alloc_c_seen___
-
-#define ___E
-
-#else /* def ___lw_alloc_c_seen___ */
-
-#define ___E extern
-
-#endif /* def ___lw_alloc_c_seen___ */
-
-___E void lw_free(void *P);
-___E void *lw_alloc(int S);
-___E void *lw_realloc(void *P, int S);
-
-#undef ___E
+void lw_free(void *P);
+void *lw_alloc(int S);
+void *lw_realloc(void *P, int S);
 
 #endif /* ___lw_alloc_h_seen___ */