diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-04-17 07:37:08 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-04-17 09:37:08 +0400 |
commit | 77b37fa4615dc1e8d5656259744f0e8a1634e258 (patch) | |
tree | 4c1e9e8580156da0a65ac4fe11dbef82f6281327 /source/blender/freestyle/intern/view_map/Functions1D.h | |
parent | 5d4a6a94ef40f8ae8c49d8fd8fc65384324cb03c (diff) |
Freestyle: Fix for VC++ warnings about 'hypot' macro redefinitions (Part 3).
(See commit e1771e72fbbf828dbf5bed871b814288389f3611 for more detail of
the problem).
Made changes to intern/view_map/Interface0D.h and intern/python/Director.h to
avoid #include <Python.h> and keep non-Python header files independent of it.
Diffstat (limited to 'source/blender/freestyle/intern/view_map/Functions1D.h')
-rw-r--r-- | source/blender/freestyle/intern/view_map/Functions1D.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/view_map/Functions1D.h b/source/blender/freestyle/intern/view_map/Functions1D.h index ff109903e9b..9edb705ef29 100644 --- a/source/blender/freestyle/intern/view_map/Functions1D.h +++ b/source/blender/freestyle/intern/view_map/Functions1D.h @@ -68,7 +68,7 @@ class /*LIB_VIEW_MAP_EXPORT*/ UnaryFunction1D { public: T result; - PyObject *py_uf1D; + void *py_uf1D; /*! The type of the value returned by the functor. */ typedef T ReturnedValueType; @@ -104,6 +104,7 @@ public: * The Interface1D on which we wish to evaluate the function. * \return the result of the function of type T. */ + /* FIXME move the implementation to Functions1D.cpp */ virtual int operator()(Interface1D& inter) { return Director_BPy_UnaryFunction1D___call__(this, py_uf1D, inter); @@ -133,7 +134,7 @@ protected: class UnaryFunction1D_void { public: - PyObject *py_uf1D; + void *py_uf1D; UnaryFunction1D_void() { @@ -152,6 +153,7 @@ public: return "UnaryFunction1D_void"; } + /* FIXME move the implementation to Functions1D.cpp */ int operator()(Interface1D& inter) { return Director_BPy_UnaryFunction1D___call__(this, py_uf1D, inter); |