Staging
v0.8.1
https://github.com/python/cpython
Revision 2fc63f7ba62eeae00347739cd0e09350ab8f697a authored by Georg Brandl on 20 February 2006, 09:42:37 UTC, committed by Georg Brandl on 20 February 2006, 09:42:37 UTC
1 parent fc10228
Raw File
Tip revision: 2fc63f7ba62eeae00347739cd0e09350ab8f697a authored by Georg Brandl on 20 February 2006, 09:42:37 UTC
Bug #854823: socketmodule now builds on Sun platforms even when
Tip revision: 2fc63f7
getbuildinfo.c
#include "Python.h"

#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];
	PyOS_snprintf(buildinfo, sizeof(buildinfo),
		      "#%d, %.20s, %.9s", BUILD, DATE, TIME);
	return buildinfo;
}
back to top