aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-10-04 15:51:59 +0000
committerJörg Mayer <jmayer@loplof.de>2013-10-04 15:51:59 +0000
commit9c0f23709daece3c4e50216bdcf34a0dac26d090 (patch)
tree3f55a035411df453e818d5dc834b3436bdef0154 /cmake
parent6c498c7420e2761e3cd2a1ad1667fe8452c6e3cd (diff)
Add a missing file on the Windows platform.
Add missing $Id$ tags. svn path=/trunk/; revision=52364
Diffstat (limited to 'cmake')
-rw-r--r--cmake/TestFileOffsetBits.c7
-rw-r--r--cmake/TestLargeFiles.c.cmakein4
-rw-r--r--cmake/TestWindowsFSeek.c20
3 files changed, 28 insertions, 3 deletions
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 <stdio.h>
+
+int main()
+{
+ __int64 off=0;
+
+ _fseeki64(NULL, off, SEEK_SET);
+
+ return 0;
+}