Staging
v0.5.1
https://github.com/python/cpython
Revision 6e13a562ae01a962612ca76f9afcc7211240236e authored by Tim Peters on 06 September 2001, 00:32:15 UTC, committed by Tim Peters on 06 September 2001, 00:32:15 UTC
Curious:  the MS docs say stati64 etc are supported even on Win95, but
Win95 doesn't support a filesystem that allows partitions > 2 Gb.

test_largefile:  This was opening its test file in text mode.  I have no
idea how that worked under Win64, but it sure needs binary mode on Win98.
BTW, on Win98 test_largefile runs quickly (under a second).
1 parent 97f4a33
Raw File
Tip revision: 6e13a562ae01a962612ca76f9afcc7211240236e authored by Tim Peters on 06 September 2001, 00:32:15 UTC
Enable large file support on Win32 systems.
Tip revision: 6e13a56
getbuildinfo.c
#include "pyconfig.h"

#ifdef macintosh
#include "macbuildno.h"
#endif

#ifndef DONT_HAVE_STDIO_H
#include <stdio.h>
#endif

#ifndef DATE
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "xx/xx/xx"
#endif
#endif

#ifndef TIME
#ifdef __TIME__
#define TIME __TIME__
#else
#define TIME "xx:xx:xx"
#endif
#endif

#ifndef BUILD
#define BUILD 0
#endif


const char *
Py_GetBuildInfo(void)
{
	static char buildinfo[50];
	sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
	return buildinfo;
}
back to top