Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2006-04-07 03:56:32 UTC
Modified files:
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.770 ircu2.10/ChangeLog:1.771
--- ircu2.10/ChangeLog:1.770 Thu Apr 6 20:46:15 2006
+++ ircu2.10/ChangeLog Thu Apr 6 20:56:22 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.19 ircu2.10/ircd/ircd_snprintf.c:1.20
--- ircu2.10/ircd/ircd_snprintf.c:1.19 Thu Apr 6 20:27:50 2006
+++ ircu2.10/ircd/ircd_snprintf.c Thu Apr 6 20:56:22 2006
@@ -18,7 +18,7 @@
*/
/** @file
* @brief IRC-specific printf() clone implementation.
- * @version $Id: ircd_snprintf.c,v 1.19 2006/04/07 03:27:50 entrope Exp $
+ * @version $Id: ircd_snprintf.c,v 1.20 2006/04/07 03:56:22 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