Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large files support in ZenLib #23

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Project/GNU/CLI/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ AC_ARG_ENABLE(arch-ppc, AC_HELP_STRING([--with-arch-ppc], [Cre
AC_ARG_ENABLE(arch-i386, AC_HELP_STRING([--with-arch-i386], [Create Mac i386 Universal binary]), , enable_arch_i386=no)
AC_ARG_ENABLE(arch-x86_64, AC_HELP_STRING([--enable-arch-x86_64], [Create Mac x86_64 architecture]), , enable_arch_x86_64=no)
AC_ARG_ENABLE(arch-arm64, AC_HELP_STRING([--enable-arch-arm64], [Create Mac arm64 architecture]), , enable_arch_arm64=no)
AC_ARG_ENABLE(large_files, AC_HELP_STRING([--disable-large_files], [Disable large files support]), , enable_large_files=yes)

dnl -------------------------------------------------------------------------
dnl Arguments - With
Expand All @@ -62,6 +63,16 @@ dnl
CXXFLAGS="$CXXFLAGS -pthread"
LDFLAGS="$LDFLAGS -lpthread -pthread"

dnl -------------------------------------------------------------------------
dnl Large files
dnl
if test "$enable_large_files" = "yes"; then
CXXFLAGS="$CXXFLAGS -D_LARGE_FILES -D_FILE_OFFSET_BITS=64"
ZenLib_LargeFiles="yes"
else
ZenLib_LargeFiles="no"
fi

dnl #########################################################################
dnl ### C/C++ compiler options used to compile
dnl #########################################################################
Expand Down
11 changes: 11 additions & 0 deletions Project/GNU/GUI/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ AC_ARG_ENABLE(arch-ppc, AC_HELP_STRING([--with-arch-ppc], [Cre
AC_ARG_ENABLE(arch-i386, AC_HELP_STRING([--with-arch-i386], [Create Mac i386 Universal binary]), , enable_arch_i386=no)
AC_ARG_ENABLE(arch-x86_64, AC_HELP_STRING([--enable-arch-x86_64], [Create Mac x86_64 architecture]), , enable_arch_x86_64=no)
AC_ARG_ENABLE(arch-arm64, AC_HELP_STRING([--enable-arch-arm64], [Create Mac arm64 architecture]), , enable_arch_arm64=no)
AC_ARG_ENABLE(large_files, AC_HELP_STRING([--disable-large_files], [Disable large files support]), , enable_large_files=yes)

dnl -------------------------------------------------------------------------
dnl Arguments - With
Expand Down Expand Up @@ -156,6 +157,16 @@ dnl
CXXFLAGS="$CXXFLAGS -pthread"
LDFLAGS="$LDFLAGS -lpthread -pthread"

dnl -------------------------------------------------------------------------
dnl Large files
dnl
if test "$enable_large_files" = "yes"; then
CXXFLAGS="$CXXFLAGS -D_LARGE_FILES -D_FILE_OFFSET_BITS=64"
ZenLib_LargeFiles="yes"
else
ZenLib_LargeFiles="no"
fi

dnl #########################################################################
dnl ### C/C++ compiler options used to compile
dnl #########################################################################
Expand Down
2 changes: 1 addition & 1 deletion Project/QtCreator/avimetaedit-gui.pro
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ TEMPLATE = app
CONFIG += qt release
CONFIG += no_keywords

DEFINES += TIXML_USE_STL
DEFINES += TIXML_USE_STL _LARGE_FILES _FILE_OFFSET_BITS=64

HEADERS = \
../../Source/FromMediaInfo/FromMediaInfo.h \
Expand Down
Loading