forked from bartvdbraak/blender
Finally commit a workaround for the Python>2.3 and FreeBSD>5.0 problem.
See http://projects.blender.org/pipermail/bf-committers/2005-April/010506.html and projects.blender.org/pipermail/bf-committers/2006-December/017035.html A workaround was proposed by Kester Maddock http://projects.blender.org/pipermail/bf-committers/2005-April/010510.html and recently again, independently by Andreas Kasparz (no URL, private email) See also http://svn.python.org/projects/python/tags/r24c1/Include/pyport.h, starting line 430 : "On 4.4BSD-descendants, ctype functions serves the whole range of wchar_t character set rather than single byte code points only. This characteristic can break some operations of string object..."
This commit is contained in:
parent
0246e8ba00
commit
55cde4276b
@ -35,5 +35,24 @@
|
||||
//#define USE_DL_EXPORT
|
||||
#include "Python.h"
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#include <osreldate.h>
|
||||
#if __FreeBSD_version > 500039
|
||||
#undef isalnum
|
||||
#undef isalpha
|
||||
#undef iscntrl
|
||||
#undef isdigit
|
||||
#undef isgraph
|
||||
#undef islower
|
||||
#undef isprint
|
||||
#undef ispunct
|
||||
#undef isspace
|
||||
#undef isupper
|
||||
#undef isxdigit
|
||||
#undef tolower
|
||||
#undef toupper
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // KX_PYTHON_H
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user