Freestyle: Fix for VC++ warnings about 'hypot' macro redefinitions (Part 2).
(See commit e1771e72fbbf828dbf5bed871b814288389f3611 for more detail of
the problem).
Fixed for #include <Python.h> not properly put in the extern "C" { ... } construct.
Also removed redundant inclusion of the header file in the Freestyle Python API code.
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
#ifndef __FREESTYLE_PYTHON_SVERTEX_H__
|
||||
#define __FREESTYLE_PYTHON_SVERTEX_H__
|
||||
|
||||
#include "../../view_map/Silhouette.h"
|
||||
#include "../BPy_Interface0D.h"
|
||||
|
||||
#include "../../view_map/Silhouette.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -35,8 +35,6 @@ extern "C" {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
extern PyTypeObject SVertex_Type;
|
||||
|
||||
#define BPy_SVertex_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&SVertex_Type))
|
||||
|
||||
Reference in New Issue
Block a user