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