You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
minimp3: Add a .cpp file to simplify building the single-header implementation
Single-header libraries like this require passing a bunch of defines _once_ before including the header, but not multiple times. This can make it tricky in user code to know when to request the implementation, if the header needs to be included in multiple files. So properly compiling a .cpp file for the implementation solves this, and also enables us to properly disable warnings on thirdparty implementation code.
This commit is contained in:
5
thirdparty/minimp3/minimp3_ex.cpp
vendored
Normal file
5
thirdparty/minimp3/minimp3_ex.cpp
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
#define MINIMP3_IMPLEMENTATION
|
||||
#define MINIMP3_FLOAT_OUTPUT
|
||||
#define MINIMP3_ONLY_MP3
|
||||
#define MINIMP3_NO_STDIO
|
||||
#include "minimp3_ex.h"
|
||||
Reference in New Issue
Block a user