Fix detection of _FILE_OFFSET_BITS in CMake

The test wrongly succeeded in C instead of correctly failing in C++
That caused off_t to be different types in core and in modpython on
32-bit systems, and modpython couldn't load with undefined symbol.
This commit is contained in:
Alexey Sokolov
2017-01-08 02:47:06 +00:00
parent e7b9ab2746
commit ded8a00358
4 changed files with 9 additions and 9 deletions
+12
View File
@@ -0,0 +1,12 @@
// See TestLargeFiles.cmake for the origin of this file
#include <stdio.h>
int main()
{
__int64 off=0;
_fseeki64(NULL, off, SEEK_SET);
return 0;
}