1. pygame
  2. pygame
  3. pygame

Commits

gamedude  committed 134f8fe

bufferproxy.c for symbian

  • Participants
  • Parent commits c1565d0
  • Branches symbian_s60

Comments (0)

Files changed (1)

File src/bufferproxy.c

View file
  • Ignore whitespace
     0,                          /* tp_init */
     0,                          /* tp_alloc */
     _bufferproxy_new,           /* tp_new */
+#ifndef __SYMBIAN32__    
     0,                          /* tp_free */
     0,                          /* tp_is_gc */
     0,                          /* tp_bases */
     0,                          /* tp_subclasses */
     0,                          /* tp_weaklist */
     0                           /* tp_del */
+#endif    
 };
 
 /**
     return (PyObject *) buf;
 }
 
+// For Python 2.2
+static PyMethodDef bufferproxy_functions[] =
+{
+    { NULL, NULL, 0, NULL }
+};
+
 PYGAME_EXPORT
 void initbufferproxy (void)
 {
         return;
 
     /* create the module */
-    module = Py_InitModule3 ("bufferproxy", NULL,
+    module = Py_InitModule3 (MODPREFIX "bufferproxy", bufferproxy_functions,
         "A generic proxy module that can spend arbitrary " \
         "objects a buffer interface");
     PyBufferProxy_Type.tp_getattro = PyObject_GenericGetAttr;