/*
- * $Id: squid_mswin.h,v 1.4 2007/08/14 16:12:40 serassio Exp $
+ * $Id: squid_mswin.h,v 1.5 2007/08/14 17:05:47 serassio Exp $
*
* AUTHOR: Andrey Shorin <tolsty@tushino.com>
* AUTHOR: Guido Serassio <serassio@squid-cache.org>
#define INT64_MAX _I64_MAX
#define INT64_MIN _I64_MIN
-#define PRId64 "I64d"
#include "default_config_file.h"
/* Some tricks for MS Compilers */
/*
- * $Id: squid.h,v 1.263 2007/08/14 16:12:41 serassio Exp $
+ * $Id: squid.h,v 1.264 2007/08/14 17:05:47 serassio Exp $
*
* AUTHOR: Duane Wessels
*
#define IPPROTO_TCP 0
#endif
-#ifndef PRIu64 /* ISO C99 Standard printf() macro for 64 bit unsigned int */
-#ifdef _SQUID_MSWIN_ /* Windows native port using MSVCRT */
+/*
+ * ISO C99 Standard printf() macros for 64 bit integers
+ * On some 64 bit platform, HP Tru64 is one, for printf must be used
+ * "%lx" instead of "%llx"
+ */
+#ifndef PRId64
+#ifdef _SQUID_MSWIN_ /* Windows native port using MSVCRT */
+#define PRId64 "I64d"
+#elif SIZEOF_INT64_T > SIZEOF_LONG
+#define PRId64 "lld"
+#else
+#define PRId64 "ld"
+#endif
+#endif
+
+#ifndef PRIu64
+#ifdef _SQUID_MSWIN_ /* Windows native port using MSVCRT */
#define PRIu64 "I64u"
#elif SIZEOF_INT64_T > SIZEOF_LONG
#define PRIu64 "llu"
#else
#define PRIu64 "lu"
-#endif /* _SQUID_MSWIN_ */
-#endif /* PRIu64 */
+#endif
+#endif
#endif /* SQUID_H */