diff options
author | Slávek Banko <[email protected]> | 2025-01-25 01:31:28 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2025-01-25 01:31:28 +0100 |
commit | bee4995859c674cc3c913cfec544b41efed934a9 (patch) | |
tree | 3b6c9f2b399e1ab7457253be617c5e453876d1e1 /src/metadata | |
parent | 906eb9cec6ac8533ddc86e7d2d26b15356ca0f82 (diff) | |
download | soundkonverter-bee4995859c674cc3c913cfec544b41efed934a9.tar.gz soundkonverter-bee4995859c674cc3c913cfec544b41efed934a9.zip |
Fix the problem of linking taglib2 on 32 bit architectures
if taglib is not built with large files support.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/metadata')
-rw-r--r-- | src/metadata/asf/asffile.cpp | 8 | ||||
-rw-r--r-- | src/metadata/m4a/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/metadata/rmff/rmff.cpp | 9 | ||||
-rw-r--r-- | src/metadata/trueaudio/ttafile.cpp | 8 | ||||
-rw-r--r-- | src/metadata/wavpack/wvfile.cpp | 8 |
5 files changed, 37 insertions, 0 deletions
diff --git a/src/metadata/asf/asffile.cpp b/src/metadata/asf/asffile.cpp index 3000007..3c15837 100644 --- a/src/metadata/asf/asffile.cpp +++ b/src/metadata/asf/asffile.cpp @@ -19,6 +19,14 @@ * USA * ***************************************************************************/ +#include "config.h" + +#if !defined(TAGLIB_LARGE_FILES_SUPPORT) + #undef _LARGE_FILES + #undef _LARGEFILE_SOURCE + #undef _FILE_OFFSET_BITS +#endif + #include <tbytevectorlist.h> #include <tstring.h> #include "asffile.h" diff --git a/src/metadata/m4a/CMakeLists.txt b/src/metadata/m4a/CMakeLists.txt index 5595611..12030ad 100644 --- a/src/metadata/m4a/CMakeLists.txt +++ b/src/metadata/m4a/CMakeLists.txt @@ -12,6 +12,10 @@ link_directories( ${TDE_LIB_DIR} ) +if( NOT TAGLIB_LARGE_FILES_SUPPORT ) + add_definitions( -U_LARGE_FILES -U_LARGEFILE_SOURCE -U_FILE_OFFSET_BITS ) +endif() + ##### pluginloader diff --git a/src/metadata/rmff/rmff.cpp b/src/metadata/rmff/rmff.cpp index fb937aa..1c7167e 100644 --- a/src/metadata/rmff/rmff.cpp +++ b/src/metadata/rmff/rmff.cpp @@ -26,6 +26,15 @@ * https://common.helixcommunity.org/nonav/2003/HCS_SDK_r5/helixsdk.htm * * * ***************************************************************************/ + +#include "config.h" + +#if !defined(TAGLIB_LARGE_FILES_SUPPORT) + #undef _LARGE_FILES + #undef _LARGEFILE_SOURCE + #undef _FILE_OFFSET_BITS +#endif + #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> diff --git a/src/metadata/trueaudio/ttafile.cpp b/src/metadata/trueaudio/ttafile.cpp index 3a02e20..0686d74 100644 --- a/src/metadata/trueaudio/ttafile.cpp +++ b/src/metadata/trueaudio/ttafile.cpp @@ -23,6 +23,14 @@ * MA 02110-1301 USA * ***************************************************************************/ +#include "config.h" + +#if !defined(TAGLIB_LARGE_FILES_SUPPORT) + #undef _LARGE_FILES + #undef _LARGEFILE_SOURCE + #undef _FILE_OFFSET_BITS +#endif + #include <tbytevector.h> #include <tstring.h> #if 0 diff --git a/src/metadata/wavpack/wvfile.cpp b/src/metadata/wavpack/wvfile.cpp index 3890bc9..0e72fee 100644 --- a/src/metadata/wavpack/wvfile.cpp +++ b/src/metadata/wavpack/wvfile.cpp @@ -23,6 +23,14 @@ * MA 02110-1301 USA * ***************************************************************************/ +#include "config.h" + +#if !defined(TAGLIB_LARGE_FILES_SUPPORT) + #undef _LARGE_FILES + #undef _LARGEFILE_SOURCE + #undef _FILE_OFFSET_BITS +#endif + #include <tbytevector.h> #include <tstring.h> #if 0 |