1
0
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:
hniksic 2006-02-02 05:04:33 -08:00
parent bfd24dba71
commit 31cc8166dc
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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