File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -518,11 +518,13 @@ void ggml_barrier(struct ggml_threadpool * tp);
518518#elif defined(__GNUC__ )
519519// GCC/Clang on *nix
520520# define GGML_WEAK_ALIAS (name , alias ) GGML_DO_PRAGMA(weak name = alias) // NOLINT
521- #elif defined(_MSC_VER ) && defined (_WIN64 )
521+ #elif defined(_MSC_VER ) && defined(_WIN64 )
522522// MSVC
523523// Note: C name mangling varies across different calling conventions
524524// see https://learn.microsoft.com/en-us/cpp/build/reference/decorated-names?view=msvc-170
525525# define GGML_WEAK_ALIAS (name , alias ) GGML_DO_PRAGMA(comment(linker, "/alternatename:" #name "=" #alias))
526+ #elif defined(_MSC_VER ) && defined(WIN32 )
527+ # define GGML_WEAK_ALIAS (name , alias ) GGML_DO_PRAGMA(comment(linker, "/alternatename:" _#name "=" #alias))
526528#else
527529# error "Unsupported compiler for GGML_WEAK_ALIAS"
528530#endif
You can’t perform that action at this time.
0 commit comments