Skip to content

Commit 9f83f67

Browse files
authored
common : fix build min/max (#2845)
* common : try to fix build * cont : try another fix
1 parent 7d3da68 commit 9f83f67

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

examples/common.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
#define STB_VORBIS_HEADER_ONLY
88
#include "stb_vorbis.c" /* Enables Vorbis decoding. */
99

10+
#ifdef _WIN32
11+
#ifndef NOMINMAX
12+
#define NOMINMAX
13+
#endif
14+
#endif
15+
1016
#define MA_NO_DEVICE_IO
1117
#define MA_NO_THREADING
1218
#define MA_NO_ENCODING
@@ -17,11 +23,11 @@
1723
#include "miniaudio.h"
1824

1925
#include <cmath>
26+
#include <codecvt>
2027
#include <cstring>
2128
#include <fstream>
22-
#include <regex>
2329
#include <locale>
24-
#include <codecvt>
30+
#include <regex>
2531
#include <sstream>
2632

2733
#if defined(_MSC_VER)

0 commit comments

Comments
 (0)