From 9c0f23709daece3c4e50216bdcf34a0dac26d090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Fri, 4 Oct 2013 15:51:59 +0000 Subject: Add a missing file on the Windows platform. Add missing $Id$ tags. svn path=/trunk/; revision=52364 --- cmake/TestFileOffsetBits.c | 7 +++++-- cmake/TestLargeFiles.c.cmakein | 4 +++- cmake/TestWindowsFSeek.c | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 cmake/TestWindowsFSeek.c diff --git a/cmake/TestFileOffsetBits.c b/cmake/TestFileOffsetBits.c index 9a9dcfd182..980a3a14d2 100644 --- a/cmake/TestFileOffsetBits.c +++ b/cmake/TestFileOffsetBits.c @@ -1,4 +1,7 @@ -/* This code was copied from http://www.gromacs.org/ +/* + * $Id$ + * + * This code was copied from http://www.gromacs.org/ * and its toplevel COPYING file starts with: * * GROMACS is free software, distributed under the GNU General Public License @@ -11,7 +14,7 @@ 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 ]; + int off_t_is_large[ (LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1 ]; return 0; } diff --git a/cmake/TestLargeFiles.c.cmakein b/cmake/TestLargeFiles.c.cmakein index 53a1f614e6..cabdf7a0de 100644 --- a/cmake/TestLargeFiles.c.cmakein +++ b/cmake/TestLargeFiles.c.cmakein @@ -1,4 +1,6 @@ -/* This code was copied from http://www.gromacs.org/ +/* + * $Id$ + * This code was copied from http://www.gromacs.org/ * and its toplevel COPYING file starts with: * * GROMACS is free software, distributed under the GNU General Public License diff --git a/cmake/TestWindowsFSeek.c b/cmake/TestWindowsFSeek.c new file mode 100644 index 0000000000..aa91f4a602 --- /dev/null +++ b/cmake/TestWindowsFSeek.c @@ -0,0 +1,20 @@ +/* + * $Id$ + * + * This code was copied from http://www.gromacs.org/ + * and its toplevel COPYING file starts with: + * + * GROMACS is free software, distributed under the GNU General Public License + * (GPL) Version 2. + */ + +#include + +int main() +{ + __int64 off=0; + + _fseeki64(NULL, off, SEEK_SET); + + return 0; +} -- cgit v1.2.3