Переписан поиск флагов для поддержки больших файлов

This commit is contained in:
2019-02-15 07:43:50 +03:00
parent 8b1bfefdb3
commit c247c359f9
10 changed files with 200 additions and 134 deletions

View File

@ -0,0 +1,11 @@
#include <sys/types.h>
/* 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 main(int argc, char **argv)
{
return 0;
}