FeldmanHashSet: added checking if a slot can be expanded
[libcds.git] / cds / compiler / vc / defs.h
index 1b00f6ff8df580a67b57daf3f6a968e3b096378d..028fef0285d3c445fcc364a1bfabc77fb8515a7b 100644 (file)
@@ -1,7 +1,7 @@
 /*
     This file is a part of libcds - Concurrent Data Structures library
 
-    (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
+    (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
 
     Source code repo: http://github.com/khizmax/libcds/
     Download: http://sourceforge.net/projects/libcds/files/
@@ -93,8 +93,6 @@
 
 #define  __attribute__( _x )
 
-#define  CDS_STDCALL    __stdcall
-
 #ifdef CDS_BUILD_LIB
 #   define CDS_EXPORT_API          __declspec(dllexport)
 #else
 #   define CDS_DEPRECATED( reason ) __declspec(deprecated( reason ))
 #endif
 
+#define CDS_NORETURN __declspec(noreturn)
+
+// Exceptions
+
+#if defined( _CPPUNWIND )
+#   define CDS_EXCEPTION_ENABLED
+#endif
+
+
 // double-width CAS support
 //#define CDS_DCAS_SUPPORT
 
+// Byte order
+//  It seems, MSVC works only on little-endian architecture?..
+#if !defined(CDS_ARCH_LITTLE_ENDIAN) && !defined(CDS_ARCH_BIG_ENDIAN)
+#   define CDS_ARCH_LITTLE_ENDIAN
+#endif
+
 #include <cds/compiler/vc/compiler_barriers.h>
 
 //@endcond