/*
* SunPro CC handles extern inline as inline, PLUS extern symbols.
*/
-
#if !defined(_SQUID_EXTERNNEW_) && defined(__SUNPRO_CC)
#define _SQUID_EXTERNNEW_ extern
#endif
+/*
+ * SunStudio CC does not define C++ portability API __FUNCTION__
+ */
+#if defined(__SUNPRO_CC) && !defined(__FUNCTION__)
+#define __FUNCTION__ __func__
+#endif
#endif /* _SQUID_SOLARIS_ */
#endif /* SQUID_OS_SOALRIS_H */
*
* debugs(1,2, HERE << "some message");
*/
-#ifdef __FUNCTION__
-#define _SQUID__FUNCTION__ __FUNCTION__
-#else
-#define _SQUID__FUNCTION__ ""
-#endif
-#define HERE SkipBuildPrefix(__FILE__)<<"("<<__LINE__<<") "<<_SQUID__FUNCTION__<<": "
+#define HERE SkipBuildPrefix(__FILE__)<<"("<<__LINE__<<") "<<__FUNCTION__<<": "
/*
* MYNAME is for use at debug levels 0 and 1 where HERE is too messy.