Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Lambermont <hans@lambermont.dyndns.org>2007-02-19 00:03:23 +0300
committerHans Lambermont <hans@lambermont.dyndns.org>2007-02-19 00:03:23 +0300
commit55cde4276b643f812e0b780a46def15b76128b8a (patch)
tree73d643e1639eb9f4730fba91d0dd94571e0566d0 /source/gameengine/Expressions/KX_Python.h
parent0246e8ba003e9ca25cbeecf8cf8abde19d0ee20d (diff)
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..."
Diffstat (limited to 'source/gameengine/Expressions/KX_Python.h')
-rw-r--r--source/gameengine/Expressions/KX_Python.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/gameengine/Expressions/KX_Python.h b/source/gameengine/Expressions/KX_Python.h
index 6ba31796e4f..76c104390db 100644
--- a/source/gameengine/Expressions/KX_Python.h
+++ b/source/gameengine/Expressions/KX_Python.h
@@ -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