Add support for Intel C++ compiler for Linux (icc 15)
[libcds.git] / cds / details / defs.h
index a69848ea06c5e2664a75121a26162e8df74b1637..ff482c1787248ed49b227d28acb756338eb927c1 100644 (file)
@@ -393,8 +393,6 @@ namespace cds {
  Common things
 **************************************************************************/
 
-#include <cds/details/numtraits.h>
-
 namespace cds {
 
     /// Base of all exceptions in the library
@@ -458,7 +456,7 @@ namespace cds {
     {
         if ( !bCond ) {
             char buf[4096];
-#   if CDS_COMPILER == CDS_COMPILER_MSVC || CDS_COMPILER == CDS_COMPILER_INTEL
+#   if CDS_COMPILER == CDS_COMPILER_MSVC || (CDS_COMPILER == CDS_COMPILER_INTEL && CDS_OS_INTERFACE == CS_OSI_WINDOWS)
             _snprintf_s( buf, sizeof(buf)/sizeof(buf[0]), _TRUNCATE, pszMsg, pszFile, nLine );
 #   else
             snprintf( buf, sizeof(buf)/sizeof(buf[0]), pszMsg, pszFile, nLine );