Skip to content

Commit 89f52ef

Browse files
Marcus GroeberMarcus Groeber
authored andcommitted
win32: only use __restrict in MSVC if C11/C17 support is not enabled
1 parent 6ee19f7 commit 89f52ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/include/ggml.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,7 @@ extern "C" {
21402140
# define GGML_RESTRICT
21412141
# endif
21422142
#else
2143-
# if defined(_MSC_VER)
2143+
# if defined (_MSC_VER) && (__STDC_VERSION__ < 201112L)
21442144
# define GGML_RESTRICT __restrict
21452145
# else
21462146
# define GGML_RESTRICT restrict

0 commit comments

Comments
 (0)