Skip to content

Commit

Permalink
Fix unity build
Browse files Browse the repository at this point in the history
  • Loading branch information
eXpl0it3r committed Nov 24, 2021
1 parent 894bad4 commit 3b004e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/SFML/Audio/SoundFileReaderMp3.cpp
Expand Up @@ -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 <minimp3_ex.h>
#undef NOMINMAX
#undef MINIMP3_NO_STDIO

#include <SFML/Audio/SoundFileReaderMp3.hpp>
#include <SFML/System/MemoryInputStream.hpp>
#include <SFML/System/Err.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/SFML/Audio/SoundFileReaderMp3.hpp
Expand Up @@ -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 <minimp3_ex.h>
#undef NOMINMAX
#undef MINIMP3_NO_STDIO
Expand Down

0 comments on commit 3b004e4

Please sign in to comment.