From 68e7a955193f627828073739893f5739eede732d Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Fri, 1 Nov 2013 12:06:46 +0200 Subject: [PATCH] Include the library versions in the publicly installed headers This allows callers to conditionally use new API features without breaking compatibility with the earlier versions of the library. --- libAACdec/include/aacdecoder_lib.h | 5 +++++ libAACenc/include/aacenc_lib.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/libAACdec/include/aacdecoder_lib.h b/libAACdec/include/aacdecoder_lib.h index 3a9b910..5f0dd02 100644 --- a/libAACdec/include/aacdecoder_lib.h +++ b/libAACdec/include/aacdecoder_lib.h @@ -457,6 +457,11 @@ Where N equals to CStreamInfo::frameSize . #include "FDK_audio.h" #include "genericStds.h" + +#define AACDECODER_LIB_VL0 3 +#define AACDECODER_LIB_VL1 0 +#define AACDECODER_LIB_VL2 0 + /** * \brief AAC decoder error codes. */ diff --git a/libAACenc/include/aacenc_lib.h b/libAACenc/include/aacenc_lib.h index 2e47571..fa41ee6 100644 --- a/libAACenc/include/aacenc_lib.h +++ b/libAACenc/include/aacenc_lib.h @@ -1025,6 +1025,10 @@ internally. #include "machine_type.h" #include "FDK_audio.h" +#define AACENCODER_LIB_VL0 4 +#define AACENCODER_LIB_VL1 0 +#define AACENCODER_LIB_VL2 0 + /** * AAC encoder error codes. */