aboutsummaryrefslogtreecommitdiff
path: root/cmake/LargeFileOffsets.c
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-08-31 23:53:40 +0200
committerMarvin W <git@larma.de>2017-09-01 01:00:59 +0200
commitdc26841b9ea1e65dedbc916257f70e7f768f724b (patch)
treef526793a227576a09d48526bbbafa7eab8177b4f /cmake/LargeFileOffsets.c
parent2cd6e94cc567284a10c4545208f53ea8421ee8d1 (diff)
downloaddino-dc26841b9ea1e65dedbc916257f70e7f768f724b.tar.gz
dino-dc26841b9ea1e65dedbc916257f70e7f768f724b.zip
cmake: set _FILE_OFFSET_BITS=64 if required for platform
Diffstat (limited to 'cmake/LargeFileOffsets.c')
-rw-r--r--cmake/LargeFileOffsets.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/LargeFileOffsets.c b/cmake/LargeFileOffsets.c
new file mode 100644
index 00000000..cbc20f0d
--- /dev/null
+++ b/cmake/LargeFileOffsets.c
@@ -0,0 +1,11 @@
+#include <sys/types.h>
+#define _K ((off_t)1024)
+#define _M ((off_t)1024 * _K)
+#define _G ((off_t)1024 * _M)
+#define _T ((off_t)1024 * _G)
+
+int test[(((64 * _G -1) % 671088649) == 268434537) && (((_T - (64 * _G -1) + 255) % 1792151290) == 305159546)? 1: -1];
+
+int main() {
+ return 0;
+} \ No newline at end of file