off64_t is defined in types.h, line 115 if _OFF64_T_ is not defined.
stdio.h includes types.h if __MSVCRT__ is defined and __NO_MINGW_LFS is not defined.
Possible causes of your problem:
1. types.h does not exist. Can be ruled out because then you would see the error "cannot stat file" instead. You did not post any such thing.
2. The file does exist, but it corrupted for some reason (and it happens to display no other error). Very unlikely, but possible - who could tell for sure. Maybe a conflict with include paths, too, using some outdated file from somewhere?
3. stdio.h does not include types.h. As __MSVCRT__ is always defined in MinGW, this means that you have defined __NO_MINGW_LFS somewhere.
4. stdio.h includes types.h, but off64_t is not being typedefed. You have defined _OFF64_T_ earlier.