From: Michael Poole Date: Fri, 7 Apr 2006 03:56:22 +0000 (+0000) Subject: Use SIZEOF_LONG_LONG instead of HAVE_LONG_LONG. X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=db7220775ae61f8488efaf8d1c58a4d47fbb12bc;p=ircu2.10.12-pk.git Use SIZEOF_LONG_LONG instead of HAVE_LONG_LONG. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1642 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index caa10b9..d05c2b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-06 Michael Poole + + * ircd/ircd_snprintf.c: Use SIZEOF_LONG_LONG (which is 0 for + unknown types) instead of the never-defined HAVE_LONG_LONG. + 2006-04-06 Michael Poole * doc/example.conf (IAuth): Update to reflect new syntax. diff --git a/ircd/ircd_snprintf.c b/ircd/ircd_snprintf.c index 60fdb44..eaec2cd 100644 --- a/ircd/ircd_snprintf.c +++ b/ircd/ircd_snprintf.c @@ -36,7 +36,7 @@ #include /* Inhibit complaints when we use GCC extensions */ -#if defined(__GNUC__) && defined(HAVE_LONG_LONG) +#if defined(__GNUC__) && SIZEOF_LONG_LONG # define EXTENSION __extension__ #else /** Fallback (empty) definition of EXTENSION. */ @@ -44,7 +44,7 @@ #endif /* Find the largest type */ -#ifdef HAVE_LONG_LONG +#if SIZEOF_LONG_LONG EXTENSION typedef long long _large_t; EXTENSION typedef unsigned long long _ularge_t; # define SIZEOF__LARGE_T SIZEOF_LONG_LONG