summaryrefslogtreecommitdiffstats
path: root/src/sord_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sord_internal.h')
-rw-r--r--src/sord_internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sord_internal.h b/src/sord_internal.h
index 4aef846..ef22467 100644
--- a/src/sord_internal.h
+++ b/src/sord_internal.h
@@ -24,9 +24,10 @@
#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ > 4)
# define SORD_UNREACHABLE() __builtin_unreachable()
+#elif defined(_MSC_VER)
+# define SORD_UNREACHABLE() __assume(0)
#else
-# include <assert.h>
-# define SORD_UNREACHABLE() assert(0)
+# define SORD_UNREACHABLE()
#endif
/** Resource node metadata */