-CG_ERROR_MACRO(7, UnsupportedGLExtensionError, CG_UNSUPPORTED_GL_EXTENSION_ERROR, "An unsupported GL extension was required to perform this operation.")
diff -ru ../py-PyCg-0.14.1.orig/cg.i ./cg.i
--- ../py-PyCg-0.14.1.orig/cg.i 2012-10-03 15:33:18.000000000 -0700
+++ ./cg.i 2012-10-03 15:34:14.000000000 -0700
-#include <Numeric/arrayobject.h>
+#include <numpy/arrayobject.h>
- if ( array = (PyArrayObject*)PyArray_ContiguousFromObject( $input, PyArray_DOUBLE, 1, 2 ) ) {
+ if ( ( array = (PyArrayObject*)PyArray_ContiguousFromObject( $input, PyArray_DOUBLE, 1, 2 ) ) ) {
$1 = (double*)array->data;
- } else if ( array = (PyArrayObject*)PyArray_ContiguousFromObject( $input, PyArray_FLOAT, 1, 2 ) ) {
+ } else if ( ( array = (PyArrayObject*)PyArray_ContiguousFromObject( $input, PyArray_FLOAT, 1, 2 ) ) ) {
$1 = (float*)array->data;
PyErr_SetString(PyExc_ValueError, "CALLE: could not cast!" );
/* Error handling function */
-%name(cgSetErrorCallback) void _cgSetErrorCallback(PyObject * pyfunc);
+%rename(cgSetErrorCallback) _cgSetErrorCallback(PyObject * pyfunc);
PyObject *_cgGetErrorCallback()
-%name(cgGetErrorCallback) PyObject *_cgGetErrorCallback();
+%rename(cgGetErrorCallback) _cgGetErrorCallback();
diff -ru ../py-PyCg-0.14.1.orig/cg_datatypes.i ./cg_datatypes.i
--- ../py-PyCg-0.14.1.orig/cg_datatypes.i 2012-10-03 15:33:18.000000000 -0700
+++ ./cg_datatypes.i 2012-10-03 15:34:00.000000000 -0700
- * Copyright (c) 2002, NVIDIA Corporation.
- * NVIDIA Corporation("NVIDIA") supplies this software to you in consideration