aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-04-20 17:18:50 +0200
committerStephen Kelly <steveire@gmail.com>2013-04-20 17:18:50 +0200
commitdb553c810cbc3a446f90d4c962110d6262853cde (patch)
tree8dcaf796b72b7aa5de77f65779fdd1771158ec41
parentef1db5ed994e13b6a5531311ff35341a244869bf (diff)
downloadextra-cmake-modules-db553c810cbc3a446f90d4c962110d6262853cde.tar.gz
extra-cmake-modules-db553c810cbc3a446f90d4c962110d6262853cde.tar.bz2
Remove FILE_OFFSET_BITS definition.
It is only needed for users of kde_file, so more it to a more relevant place.
-rw-r--r--kde-modules/KDECompilerSettings.cmake19
1 files changed, 0 insertions, 19 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index e72b047b..aa01b66c 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -169,25 +169,6 @@ endif()
if (UNIX)
set ( _KDE4_PLATFORM_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} -D_LARGEFILE64_SOURCE)
-
- # This flag is needed in order to be able to support files > 2GB even on
- # 32bit platforms. The default is to use the non-64bit aware syscalls on
- # 32bit platforms, which makes every application to SIGXFSZ (which is
- # equivalent to a crash) when they see or touch a file > 2GB.
- check_cxx_source_compiles("
-#include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
- int main() { return 0; }
-" _OFFT_IS_64BIT)
-
- if (NOT _OFFT_IS_64BIT)
- set ( _KDE4_PLATFORM_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} -D_FILE_OFFSET_BITS=64)
- endif ()
endif (UNIX)