fix error on windows qwen2-audio/whisper.cpp:9935:38: error: '_O_BINARY' was not declared in this scope

This commit is contained in:
Zack Zhiyuan Li 2024-11-04 04:40:41 +00:00
parent 995baefeed
commit a4747b2edb

View file

@ -60,6 +60,11 @@
#include <functional>
#include <codecvt>
#ifdef _WIN32
#include <io.h> // for _setmode
#include <fcntl.h> // for _O_BINARY
#endif
// third-party utilities
// use your favorite implementations
#define DR_WAV_IMPLEMENTATION