view Python/getplatform.c @ 65165:2147cc152227

_Py_stat() and _Py_fopen(): avoid PyUnicode_AsWideCharString() on Windows On Windows, Py_UNICODE is wchar_t, so we can avoid the expensive Py_UNICODE* => wchar_t* conversion.
author Victor Stinner <victor.stinner@haypocalc.com>
date Thu, 07 Oct 2010 22:23:10 +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;
}