Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-04-07 03:51:58 UTC
Modified files:
Tag: u2_10_12_branch
ircd/ircd_snprintf.c ChangeLog
Log message:
Use SIZEOF_LONG_LONG instead of HAVE_LONG_LONG.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.89 ircu2.10/ChangeLog:1.710.2.90
--- ircu2.10/ChangeLog:1.710.2.89 Thu Apr 6 20:43:06 2006
+++ ircu2.10/ChangeLog Thu Apr 6 20:51:48 2006
@@ -1,5 +1,10 @@
2006-04-06 Michael Poole <[EMAIL PROTECTED]>
+ * 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 <[EMAIL PROTECTED]>
+
* doc/example.conf (IAuth): Update to reflect new syntax.
* doc/readme.who: Fix typo in metasyntactic variable name.
Index: ircu2.10/ircd/ircd_snprintf.c
diff -u ircu2.10/ircd/ircd_snprintf.c:1.18.2.1
ircu2.10/ircd/ircd_snprintf.c:1.18.2.2
--- ircu2.10/ircd/ircd_snprintf.c:1.18.2.1 Wed Feb 15 19:29:59 2006
+++ ircu2.10/ircd/ircd_snprintf.c Thu Apr 6 20:51:48 2006
@@ -18,7 +18,7 @@
*/
/** @file
* @brief IRC-specific printf() clone implementation.
- * @version $Id: ircd_snprintf.c,v 1.18.2.1 2006/02/16 03:29:59 entrope Exp $
+ * @version $Id: ircd_snprintf.c,v 1.18.2.2 2006/04/07 03:51:48 entrope Exp $
*/
#include "config.h"
@@ -36,7 +36,7 @@
#include <time.h>
/* 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
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches