From 43422354895bb620d6731f928d121ae6cd06da48 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 26 Aug 2009 06:15:43 +0000 Subject: - Mathutils.Vector assignment wasnt working in the BGE's py api, was using getValue() rather than setValue() - added GPL header to bpy_interface.c from 2.4x's BPY_interface.c - warning fixes --- source/blender/python/generic/bpy_internal_import.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/python/generic/bpy_internal_import.h') diff --git a/source/blender/python/generic/bpy_internal_import.h b/source/blender/python/generic/bpy_internal_import.h index c93d930dab0..4e761fe8da0 100644 --- a/source/blender/python/generic/bpy_internal_import.h +++ b/source/blender/python/generic/bpy_internal_import.h @@ -31,6 +31,15 @@ #ifndef EXPP_bpy_import_h #define EXPP_bpy_import_h +/* python redefines :/ */ +#ifdef _POSIX_C_SOURCE +#undef _POSIX_C_SOURCE +#endif + +#ifdef _XOPEN_SOURCE +#undef _XOPEN_SOURCE +#endif + #include #include "compile.h" /* for the PyCodeObject */ #include "eval.h" /* for PyEval_EvalCode */ -- cgit v1.2.3