Added support for Python 3. (Roland Puntaier)
diff --git a/src/structs.h b/src/structs.h
index c0e31c0..e0f9f3b 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1612,6 +1612,10 @@
     void	*b_python_ref;	/* The Python reference to this buffer */
 #endif
 
+#ifdef FEAT_PYTHON3
+    void	*b_python3_ref;	/* The Python3 reference to this buffer */
+#endif
+
 #ifdef FEAT_TCL
     void	*b_tcl_ref;
 #endif
@@ -2106,6 +2110,10 @@
     void	*w_python_ref;		/* The Python value for this window */
 #endif
 
+#ifdef FEAT_PYTHON3
+    void	*w_python3_ref;		/* The Python value for this window */
+#endif
+
 #ifdef FEAT_TCL
     void	*w_tcl_ref;
 #endif