Commits

Anonymous committed 2f14f61

Comments (0)

Files changed (3)

include/pgDeclare.h

 #define _PG_DECLARE_H
 
 //forward declaration of structures used by multiple .h files
+//to resolve circular dependency
 
 typedef struct _pgBodyObject pgBodyObject;
 typedef struct _pgShapeObject pgShapeObject;

include/pgJointObject.h

 #include "pgBodyObject.h"
 #include "pgDeclare.h"
 
-typedef struct _pgJointObject{
+struct _pgJointObject{
 	PyObject_HEAD
 
 	pgBodyObject*	body1;

include/pgShapeObject.h

 
 
 // shape base type
-typedef struct _pgShapeObject{
+struct _pgShapeObject{
 	PyObject_HEAD
 
 	pgAABBBox box;