switch (strategy) {
case WHISPER_DECODE_GREEDY:
{
+#if defined(_MSC_VER)
result = {
+#else
+ result = (struct whisper_full_params) {
+#endif
.strategy = WHISPER_DECODE_GREEDY,
.n_threads = std::min(4, (int32_t) std::thread::hardware_concurrency()),
.offset_ms = 0,
} break;
case WHISPER_DECODE_BEAM_SEARCH:
{
+#if defined(_MSC_VER)
result = {
- .strategy = WHISPER_DECODE_GREEDY,
+#else
+ result = (struct whisper_full_params) {
+#endif
+ .strategy = WHISPER_DECODE_BEAM_SEARCH,
.n_threads = std::min(4, (int32_t) std::thread::hardware_concurrency()),
.offset_ms = 0,