mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Don't define countof if it's already defined.
This commit is contained in:
parent
bfd24dba71
commit
31cc8166dc
@ -1,3 +1,7 @@
|
||||
2006-02-02 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* hash.c: Don't define countof if it's already defined.
|
||||
|
||||
2006-01-30 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||
|
||||
* http.c: Changed output format. Removed excessively verbose debugging
|
||||
|
@ -50,7 +50,9 @@ so, delete this exception statement from your version. */
|
||||
# define xnew_array(type, x) xmalloc (sizeof (type) * (x))
|
||||
# define xmalloc malloc
|
||||
# define xfree free
|
||||
# ifndef countof
|
||||
# define countof(x) (sizeof (x) / sizeof ((x)[0]))
|
||||
# endif
|
||||
# define TOLOWER(x) ('A' <= (x) && (x) <= 'Z' ? (x) - 32 : (x))
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user