Reintroduce HAVE_CONFIG_H so that TagLib can be built without CMake

This commit is contained in:
Lukáš Lalinský 2013-06-20 15:07:25 +02:00
parent 6d4299ea94
commit fdb8a6b065
16 changed files with 32 additions and 17 deletions

View File

@ -21,6 +21,7 @@ option(BUILD_EXAMPLES "Build the examples" OFF)
option(NO_ITUNES_HACKS "Disable workarounds for iTunes bugs" OFF)
add_definitions(-DHAVE_CONFIG_H)
set(TESTS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/tests/")
## the following are directories where stuff will be installed to

View File

@ -19,7 +19,6 @@
* USA *
***************************************************************************/
#include "taglib_config.h"
#include <stdlib.h>
#include <fileref.h>
#include <tfile.h>

View File

@ -23,7 +23,6 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "taglib_config.h"
#include <tdebug.h>
#include <tstring.h>
#include "asfproperties.h"

View File

@ -23,7 +23,6 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "taglib_config.h"
#include <tpropertymap.h>
#include "asftag.h"

View File

@ -27,8 +27,6 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "taglib_config.h"
#include <tfile.h>
#include <tstring.h>
#include <tdebug.h>

View File

@ -23,7 +23,6 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "taglib_config.h"
#include <tdebug.h>
#include <tstring.h>
#include "mp4file.h"

View File

@ -23,7 +23,6 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "taglib_config.h"
#include <tdebug.h>
#include <tstring.h>
#include <tpropertymap.h>

View File

@ -23,8 +23,9 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "config.h"
#include "taglib_config.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#if HAVE_ZLIB
#include <zlib.h>

View File

@ -23,8 +23,10 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "config.h"
#include "taglib_config.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <tdebug.h>
#include "id3v2framefactory.h"

View File

@ -23,6 +23,10 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <tfile.h>
#include "id3v2tag.h"

View File

@ -23,7 +23,9 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "config.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <cstdio>

View File

@ -23,7 +23,9 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "config.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "tdebug.h"
#include "tstring.h"

View File

@ -23,7 +23,10 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "config.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "trefcounter.h"
#if defined(HAVE_STD_ATOMIC)

View File

@ -25,7 +25,9 @@
// This class assumes that std::basic_string<T> has a contiguous and null-terminated buffer.
#include "config.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "tstring.h"
#include "tdebug.h"

View File

@ -1,6 +1,9 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <string>
#include <stdio.h>
#include <config.h>
// so evil :(
#define protected public
#include <id3v2tag.h>

View File

@ -1,4 +1,6 @@
#include "config.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef _WIN32
#include <windows.h>