Variable was defined in a header file (constant_Type), resulting in
'multiply defined symbol' warning on IRIX for every file that included that file. Moved to a C source file.
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
|
||||
#include "gen_utils.h"
|
||||
|
||||
PyTypeObject constant_Type;
|
||||
|
||||
//------------------METHOD IMPLEMENTATIONS-----------------------------
|
||||
//------------------------constant.items()
|
||||
//Returns a list of key:value pairs like dict.items()
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
//-------------------TYPE CHECKS---------------------------------
|
||||
#define BPy_Constant_Check(v) ((v)->ob_type==&constant_Type)
|
||||
//-------------------TYPEOBJECT----------------------------------
|
||||
PyTypeObject constant_Type;
|
||||
extern PyTypeObject constant_Type;
|
||||
//-------------------STRUCT DEFINITION---------------------------
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
|
||||
Reference in New Issue
Block a user