Skip to content

Commit

Permalink
common : fix build min/max (whisper/2845)
Browse files Browse the repository at this point in the history
* common : try to fix build

* cont : try another fix
  • Loading branch information
ggerganov committed Feb 27, 2025
1 parent 3a3f945 commit a96038a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
#define STB_VORBIS_HEADER_ONLY
#include "stb_vorbis.c" /* Enables Vorbis decoding. */

#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#endif

#define MA_NO_DEVICE_IO
#define MA_NO_THREADING
#define MA_NO_ENCODING
Expand All @@ -17,11 +23,11 @@
#include "miniaudio.h"

#include <cmath>
#include <codecvt>
#include <cstring>
#include <fstream>
#include <regex>
#include <locale>
#include <codecvt>
#include <regex>
#include <sstream>

#if defined(_MSC_VER)
Expand Down

0 comments on commit a96038a

Please sign in to comment.