Fix build of mp4 tag writing option

This closes Bug 346
Thanks to Darrell Anderson for the patch!
pull/1/head
Timothy Pearson 12 years ago
parent 0cc1c9ad02
commit 4782580443

@ -995,7 +995,7 @@ if test "$have_mp4v2" != "no"; then
ac_cppflags_save=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I."
AC_CHECK_HEADERS(systems.h)
AC_CHECK_HEADERS([mp4.h], [have_mp4_h=yes], [],
AC_CHECK_HEADERS([mp4v2/mp4v2.h], [have_mp4_h=yes], [],
[#ifdef HAVE_SYSTEMS_H
# include <systems.h>
#endif

@ -31,6 +31,8 @@ email : aumuell@reserv.at
#include <stdint.h>
#include <cstdlib>
#include <stdlib.h>
#include <sys/types.h>
#define MP4V2_HAS_WRITE_BUG 1

@ -31,6 +31,7 @@ email : andrew.leadbetter@gmail.com
#include <stdint.h>
#include <cstring>
#include <sys/types.h>
#ifndef UINT64_TO_DOUBLE
#define UINT64_TO_DOUBLE(a) ((double)((int64_t)(a)))

@ -24,7 +24,7 @@ email : andrew.leadbetter@gmail.com
#include <audioproperties.h>
#include <tstring.h>
#include <mp4.h>
#include <mp4v2/mp4v2.h>
// mp4.h drags in mp4_config.h that defines these
// get rid of them so they don't conflict with our config.h
#undef VERSION

@ -26,6 +26,8 @@ email : andrew.leadbetter@gmail.com
#include <stdint.h>
#include <cstdlib>
#include <cstring>
#include <stdlib.h>
#include <sys/types.h>
using namespace TagLib;

@ -23,7 +23,7 @@ email : andrew.leadbetter@gmail.com
#include <tag.h>
#include "mp4file.h"
#include <mp4.h>
#include <mp4v2/mp4v2.h>
namespace TagLib {

Loading…
Cancel
Save