Ticket #55051: patch-matplotlib-macosx-pre-c99.diff

File patch-matplotlib-macosx-pre-c99.diff, 1.1 KB (added by ccorn, 7 years ago)

patch to be applied with -p0 in port dir py-matplotlib

  • python/py-matplotlib/files/patch-src-macosx.m.diff

    diff --git a/python/py-matplotlib/files/patch-src-macosx.m.diff b/python/py-matplotlib/files/patch-src-macosx.m.diff
    index 18dea4aa13..2b68c7f79f 100644
    a b  
    1 --- src/_macosx.m.orig  2015-11-29 10:44:55.000000000 -0700
    2 +++ src/_macosx.m       2015-11-29 11:02:16.000000000 -0700
     1--- src/_macosx.m.orig  2017-10-03 08:50:44.000000000 +0200
     2+++ src/_macosx.m       2017-10-10 12:40:29.000000000 +0200
    33@@ -1,5 +1,8 @@
    44 #include <Cocoa/Cocoa.h>
    55 #include <ApplicationServices/ApplicationServices.h>
     
    88+#endif
    99 #include <sys/socket.h>
    1010 #include <Python.h>
    11  #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
     11 
     12@@ -1319,7 +1322,8 @@ NavigationToolbar_get_active (Navigation
     13     }
     14     Py_ssize_t list_index = 0;
     15     PyObject* list = PyList_New(m);
     16-    for (size_t state_index = 0; state_index < n; state_index++)
     17+    size_t state_index;
     18+    for (state_index = 0; state_index < n; state_index++)
     19     {
     20         if(states[state_index]==1)
     21         {