/* default off */
int debug_enabled = 0;
-#ifndef __GNUC__
+#if !defined(__GNUC__) && !defined(__SUNPRO_CC)
/* under gcc a macro define in compat/debug.h is used instead */
void
va_end(args);
}
-#endif /* __GNUC__ */
+#endif /* __GNUC__ || __SUNPRO_CC */
SQUIDCEXTERN int debug_enabled;
/* the macro overload style is really a gcc-ism */
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__SUNPRO_CC)
#define debug(X...) \
if (debug_enabled) { \
<< content << std::endl; \
} else (void)0
-#else /* __GNUC__ */
+#else /* __GNUC__ || __SUNPRO_CC */
/* non-GCC compilers can't do the above macro define yet. */
void debug(const char *format,...);
{
extern const HttpHeaderStat *dump_stat; /* argh! */
const int id = static_cast<int>(val);
- const bool valid_id = id >= 0 && id < HttpHdrCcType::CC_ENUM_END;
+ const bool valid_id = id >= 0 && id < static_cast<int>(HttpHdrCcType::CC_ENUM_END);
const char *name = valid_id ? CcAttrs[id].name : "INVALID";
if (count || valid_id)
HttpHdrCc::isSet(HttpHdrCcType id) const
{
assert(id < HttpHdrCcType::CC_ENUM_END);
- return EBIT_TEST(mask,id);
+ return EBIT_TEST(mask, static_cast<long>(id));
}
void
HttpHdrCc::setMask(HttpHdrCcType id, bool newval)
{
if (newval)
- EBIT_SET(mask,id);
+ EBIT_SET(mask,static_cast<long>(id));
else
- EBIT_CLR(mask,id);
+ EBIT_CLR(mask, static_cast<long>(id));
}
/// set a data member to a new value, and set the corresponding mask-bit.
fs/libfs.la \
DiskIO/libdiskio.la \
comm/libcomm.la \
+ anyp/libanyp.la \
security/libsecurity.la \
$(SSL_LIBS) \
ipc/libipc.la \
mgr/libmgr.la \
- anyp/libanyp.la \
parser/libparser.la \
eui/libeui.la \
icmp/libicmp.la \
#include "squid.h"
-#if !defined(__clang__)
+#if !defined(__clang__) && !defined(__SUNPRO_CC)
#include <new>