From 2eba4fb96b97df690139f8c0352f8080acc4014f Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Mon, 28 Nov 2011 15:32:22 +0000 Subject: [trunk] activate LargeFileSupport in CMake --- CMake/TestFileOffsetBits.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 CMake/TestFileOffsetBits.c (limited to 'CMake/TestFileOffsetBits.c') diff --git a/CMake/TestFileOffsetBits.c b/CMake/TestFileOffsetBits.c new file mode 100644 index 00000000..993b2da4 --- /dev/null +++ b/CMake/TestFileOffsetBits.c @@ -0,0 +1,10 @@ +#include + +int main(int argc, char **argv) +{ + /* Cause a compile-time error if off_t is smaller than 64 bits */ +#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 ]; + return 0; +} + -- cgit v1.2.3