view Python/getplatform.c @ 36625:bddc13d57b88 legacy-trunk

Based on discussion with Martin and Thomas on python-checkins add a Py_SAFE_DOWNCAST() to make the code correct.
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 20 Feb 2006 18:57:39 +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;
}