Compile time configuration in public taglib_config.h (#1262)

This allows the client to check which formats are available.
This commit is contained in:
Urs Fleisch
2025-02-01 16:59:16 +01:00
parent efd5fa2f17
commit 0bef50bcca
17 changed files with 238 additions and 236 deletions

View File

@ -22,13 +22,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <iostream>
#include <cstdlib>
#include "taglib_config.h"
#include "tbytevector.h"
#include "mpegfile.h"
#include "id3v2tag.h"
@ -36,7 +33,7 @@
#include "id3v2header.h"
#include "commentsframe.h"
#include "id3v1tag.h"
#ifdef WITH_APE
#ifdef TAGLIB_WITH_APE
#include "apetag.h"
#endif
@ -96,7 +93,7 @@ int main(int argc, char *argv[])
else
std::cout << "file does not have a valid id3v1 tag" << std::endl;
#ifdef WITH_APE
#ifdef TAGLIB_WITH_APE
APE::Tag *ape = f.APETag();
std::cout << std::endl << "APE" << std::endl;