From: Steve Lhomme Date: Sun, 27 Jun 2010 05:24:02 +0000 (+0000) Subject: libmatroska: HAVE_EBML2 comes from the config.h and HAS_EBML2 comes from the makefile X-Git-Tag: release-1.1.0~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=429911394f1e19aa18b1e58b2a0b9a55327f5b84;p=libmatroska libmatroska: HAVE_EBML2 comes from the config.h and HAS_EBML2 comes from the makefile git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@353 a6f86f6d-0131-4f8e-9e7b-e335508773d5 --- diff --git a/matroska/KaxDefines.h b/matroska/KaxDefines.h index cad2d73..6d0b926 100644 --- a/matroska/KaxDefines.h +++ b/matroska/KaxDefines.h @@ -36,7 +36,7 @@ #include "ebml/EbmlVersion.h" #include "ebml/EbmlElement.h" -#if defined(HAVE_EBML2) +#if defined(HAVE_EBML2) || defined(HAS_EBML2) #define DEFINE_MKX_CONTEXT(a) DEFINE_xxx_CONTEXT(a,EBML_SemanticGlobal) #define DEFINE_MKX_MASTER_CONS(a,b,c,d,e) DEFINE_xxx_MASTER_CONS(a,b,d,e,EBML_SemanticGlobal) #define DEFINE_MKX_MASTER(a,b,c,d,e) DEFINE_xxx_MASTER(a,b,d,e,EBML_SemanticGlobal) diff --git a/matroska/KaxInfoData.h b/matroska/KaxInfoData.h index 50210df..9434abf 100644 --- a/matroska/KaxInfoData.h +++ b/matroska/KaxInfoData.h @@ -52,7 +52,7 @@ START_LIBMATROSKA_NAMESPACE DECLARE_MKX_BINARY(KaxSegmentUID) public: -#if defined(HAVE_EBML2) +#if defined(HAVE_EBML2) || defined(HAS_EBML2) KaxSegmentUID(EBML_DEF_CONS EBML_DEF_SEP EBML_EXTRA_PARAM); #endif virtual bool ValidateSize() const { return IsFiniteSize() && (GetSize() == 16);} diff --git a/src/FileKax.cpp b/src/FileKax.cpp index b7caa6f..0d8903f 100644 --- a/src/FileKax.cpp +++ b/src/FileKax.cpp @@ -452,14 +452,14 @@ END_LIBMATROSKA_NAMESPACE void matroska_init() { -#if defined(HAVE_EBML2) +#if defined(HAVE_EBML2) || defined(HAS_EBML2) ebml_init(); #endif } void matroska_done() { -#if defined(HAVE_EBML2) +#if defined(HAVE_EBML2) || defined(HAS_EBML2) ebml_done(); #endif } diff --git a/src/KaxInfoData.cpp b/src/KaxInfoData.cpp index 5fc5bba..0c0e541 100644 --- a/src/KaxInfoData.cpp +++ b/src/KaxInfoData.cpp @@ -71,7 +71,7 @@ KaxNextUID::KaxNextUID(EBML_EXTRA_DEF) { } -#if defined(HAVE_EBML2) +#if defined(HAVE_EBML2) || defined(HAS_EBML2) KaxSegmentUID::KaxSegmentUID(EBML_DEF_CONS EBML_DEF_SEP EBML_EXTRA_DEF) :EbmlBinary(EBML_DEF_PARAM EBML_DEF_SEP EBML_EXTRA_CALL) { diff --git a/src/KaxTagMulti.cpp b/src/KaxTagMulti.cpp index 00c7d93..c4a140f 100644 --- a/src/KaxTagMulti.cpp +++ b/src/KaxTagMulti.cpp @@ -144,7 +144,7 @@ const EbmlSemanticContext & GetKaxTagsGlobal_Context() return EBML_CLASS_SEMCONTEXT(KaxTagMultiGlobal); } -#if defined(HAVE_EBML2) +#if defined(HAVE_EBML2) || defined(HAS_EBML2) #define DEFINE_TAG_MASTER(a,b,c,d,e) DEFINE_xxx_MASTER(a,b,d,e,EBML_SemanticKaxTagMultiGlobal) #else #define DEFINE_TAG_MASTER(a,b,c,d,e) DEFINE_xxx_MASTER(a,b,c,d,e,*GetKaxTagsGlobal_Context)