From 3b004e4f09701b6e08125e4c3f37b2c0dd26b369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Wed, 24 Nov 2021 08:45:41 +0100 Subject: [PATCH] Fix unity build --- src/SFML/Audio/SoundFileReaderMp3.cpp | 7 +++++++ src/SFML/Audio/SoundFileReaderMp3.hpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/SFML/Audio/SoundFileReaderMp3.cpp b/src/SFML/Audio/SoundFileReaderMp3.cpp index b1481e6224..a378fd4893 100644 --- a/src/SFML/Audio/SoundFileReaderMp3.cpp +++ b/src/SFML/Audio/SoundFileReaderMp3.cpp @@ -26,6 +26,13 @@ // Headers //////////////////////////////////////////////////////////// #define MINIMP3_IMPLEMENTATION // Minimp3 control define, places implementation in this file. + +#define NOMINMAX // To avoid windows.h and std::min issue. +#define MINIMP3_NO_STDIO // Minimp3 control define, eliminate file manipulation code which is useless here. +#include +#undef NOMINMAX +#undef MINIMP3_NO_STDIO + #include #include #include diff --git a/src/SFML/Audio/SoundFileReaderMp3.hpp b/src/SFML/Audio/SoundFileReaderMp3.hpp index 07fecf0433..acadb7cf2b 100644 --- a/src/SFML/Audio/SoundFileReaderMp3.hpp +++ b/src/SFML/Audio/SoundFileReaderMp3.hpp @@ -29,7 +29,7 @@ // Headers //////////////////////////////////////////////////////////// #define NOMINMAX // To avoid windows.h and std::min issue. -#define MINIMP3_NO_STDIO // Minimp3 control define, eliminate file manipulation code which useless here. +#define MINIMP3_NO_STDIO // Minimp3 control define, eliminate file manipulation code which is useless here. #include #undef NOMINMAX #undef MINIMP3_NO_STDIO