summaryrefslogtreecommitdiff
path: root/include/mimalloc-types.h
diff options
context:
space:
mode:
authordaan <daanl@outlook.com>2020-09-05 09:37:09 -0700
committerdaan <daanl@outlook.com>2020-09-05 09:37:09 -0700
commit2e311f341bbfbe1e09716e3e20b893c3f5555add (patch)
treec9a1081559b742b147f544eb17b3d6db5119a939 /include/mimalloc-types.h
parent50de0d23582cfd2be63ed62722e395777e817f89 (diff)
fix msvc compilation in C mode
Diffstat (limited to 'include/mimalloc-types.h')
-rw-r--r--include/mimalloc-types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h
index 5893ede..d9bd14e 100644
--- a/include/mimalloc-types.h
+++ b/include/mimalloc-types.h
@@ -12,6 +12,10 @@ terms of the MIT license. A copy of the license can be found in the file
#include <stdint.h> // uintptr_t, uint16_t, etc
#include <mimalloc-atomic.h> // _Atomic
+#ifdef _MSC_VER
+#pragma warning(disable:4214) // bitfield is not int
+#endif
+
// Minimal alignment necessary. On most platforms 16 bytes are needed
// due to SSE registers for example. This must be at least `MI_INTPTR_SIZE`
#ifndef MI_MAX_ALIGN_SIZE