Spaces:
Running
Running
common : fix build min/max (#2845)
Browse files* common : try to fix build
* cont : try another fix
- examples/common.cpp +8 -2
examples/common.cpp
CHANGED
|
@@ -7,6 +7,12 @@
|
|
| 7 |
#define STB_VORBIS_HEADER_ONLY
|
| 8 |
#include "stb_vorbis.c" /* Enables Vorbis decoding. */
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
#define MA_NO_DEVICE_IO
|
| 11 |
#define MA_NO_THREADING
|
| 12 |
#define MA_NO_ENCODING
|
|
@@ -17,11 +23,11 @@
|
|
| 17 |
#include "miniaudio.h"
|
| 18 |
|
| 19 |
#include <cmath>
|
|
|
|
| 20 |
#include <cstring>
|
| 21 |
#include <fstream>
|
| 22 |
-
#include <regex>
|
| 23 |
#include <locale>
|
| 24 |
-
#include <
|
| 25 |
#include <sstream>
|
| 26 |
|
| 27 |
#if defined(_MSC_VER)
|
|
|
|
| 7 |
#define STB_VORBIS_HEADER_ONLY
|
| 8 |
#include "stb_vorbis.c" /* Enables Vorbis decoding. */
|
| 9 |
|
| 10 |
+
#ifdef _WIN32
|
| 11 |
+
#ifndef NOMINMAX
|
| 12 |
+
#define NOMINMAX
|
| 13 |
+
#endif
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
#define MA_NO_DEVICE_IO
|
| 17 |
#define MA_NO_THREADING
|
| 18 |
#define MA_NO_ENCODING
|
|
|
|
| 23 |
#include "miniaudio.h"
|
| 24 |
|
| 25 |
#include <cmath>
|
| 26 |
+
#include <codecvt>
|
| 27 |
#include <cstring>
|
| 28 |
#include <fstream>
|
|
|
|
| 29 |
#include <locale>
|
| 30 |
+
#include <regex>
|
| 31 |
#include <sstream>
|
| 32 |
|
| 33 |
#if defined(_MSC_VER)
|