view Python/getplatform.c @ 43686:1998ee0eff2c

Try to fix some of the failing tests on Win64. PY_SSIZE_T_MAX (8 bytes) is larger than what can fit into a long (4 bytes). Hopefully this will fix more problems than it creates. There are many, many compile warnings on Win64. Each of these should be investigated to determine if they are real problems or not. Many of these presumably affect the trunk too.
author Neal Norwitz <nnorwitz@gmail.com>
date Fri, 26 Oct 2007 06:05:28 +0000
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

const char *
Py_GetPlatform(void)
{
	return PLATFORM;
}