Added preliminary support for CLang-3.7 to MSVC projects
[libcds.git] / cds / compiler / clang / defs.h
index 5a92cf5be7db56b9d07359bb20b3ab033c08060d..12a2ab4e63c0d018e9040d03c76d140784dd3e5e 100644 (file)
 #   define CDS_USE_LIBCDS_ATOMIC
 #endif
 
+// clang for Windows
+#if defined( _MSC_VER )
+#   define CDS_OS_INTERFACE     CDS_OSI_WINDOWS
+#   if defined(_WIN64)
+#       define CDS_OS_TYPE      CDS_OS_WIN64
+#       define CDS_OS__NAME     "Win64"
+#       define CDS_OS__NICK     "Win64"
+#   elif defined(_WIN32)
+#       define CDS_OS_TYPE      CDS_OS_WIN32
+#       define CDS_OS__NAME     "Win32"
+#       define CDS_OS__NICK     "Win32"
+#   endif
+#endif
+
 #include <cds/compiler/gcc/compiler_macro.h>
 
 #define alignof __alignof__