comparison 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
comparison
equal deleted inserted replaced
373:00fced888c5d 374:8e25147c2aa8
20 */ 20 */
21 21
22 #ifndef ___lw_alloc_h_seen___ 22 #ifndef ___lw_alloc_h_seen___
23 #define ___lw_alloc_h_seen___ 23 #define ___lw_alloc_h_seen___
24 24
25 25 void lw_free(void *P);
26 #ifdef ___lw_alloc_c_seen___ 26 void *lw_alloc(int S);
27 27 void *lw_realloc(void *P, int S);
28 #define ___E
29
30 #else /* def ___lw_alloc_c_seen___ */
31
32 #define ___E extern
33
34 #endif /* def ___lw_alloc_c_seen___ */
35
36 ___E void lw_free(void *P);
37 ___E void *lw_alloc(int S);
38 ___E void *lw_realloc(void *P, int S);
39
40 #undef ___E
41 28
42 #endif /* ___lw_alloc_h_seen___ */ 29 #endif /* ___lw_alloc_h_seen___ */