2 * and its toplevel COPYING file starts with:
4 * GROMACS is free software, distributed under the GNU General Public License
8 #cmakedefine _LARGEFILE_SOURCE
9 #cmakedefine _LARGEFILE64_SOURCE
10 #cmakedefine _LARGE_FILES
11 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
13 /* detect failure even with -Wno-error on command line */
14 #pragma GCC diagnostic error "-Werror"
16 #include <sys/types.h>
20 int main(int argc, char **argv)
22 /* Cause a compile-time error if off_t is smaller than 64 bits,
23 * and make sure we have ftello / fseeko.
25 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26 int off_t_is_large[ (LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1 ];
27 /* silence unused warnings */
33 fp = fopen(argv[0],"r");
34 offset = ftello( fp );
36 fseeko( fp, offset, SEEK_CUR );