Skip to content

Commit a479ef3

Browse files
committed
fix Visual Studio 17.10 internal compiler error on redefinition static_assert
1 parent b864b50 commit a479ef3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml-common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ typedef sycl::half2 ggml_half2;
5252

5353
#if defined(GGML_COMMON_DECL)
5454

55+
#ifdef _WIN32
56+
#include <assert.h>
57+
#endif
58+
5559
#ifndef __cplusplus
5660
#ifndef static_assert
5761
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201100L)

0 commit comments

Comments
 (0)