added check for Sun C++ before 5.9 in uthash
[public/netxms.git] / include / uthash.h
index 69a1a90..7cf335d 100644 (file)
@@ -40,7 +40,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define DECLTYPE(x)
 #endif
 #else                   /* GNU, Sun and other compilers */
-#ifdef __HP_aCC
+#if defined(__HP_aCC) || (defined(__SUNPRO_CC) && (__SUNPRO_CC < 0x590))
 #define NO_DECLTYPE
 #define DECLTYPE(x)
 #else