summaryrefslogtreecommitdiff
path: root/dev-python/pyfltk/files
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyfltk/files')
-rw-r--r--dev-python/pyfltk/files/fltk_wrap.patch14
-rw-r--r--dev-python/pyfltk/files/ignore-func.patch12
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-python/pyfltk/files/fltk_wrap.patch b/dev-python/pyfltk/files/fltk_wrap.patch
new file mode 100644
index 000000000000..e0c7ba3a4133
--- /dev/null
+++ b/dev-python/pyfltk/files/fltk_wrap.patch
@@ -0,0 +1,14 @@
+--- a/python/fltk_wrap.cpp
++++ b/python/fltk_wrap.cpp
+@@ -144,7 +144,9 @@
+ # define _SCL_SECURE_NO_DEPRECATE
+ #endif
+
+-
++int _fl_filename_isdir_quick(const char *n) {
++ return 0;
++}
+
+ /* Python.h has to appear first */
+ #include <Python.h>
+
diff --git a/dev-python/pyfltk/files/ignore-func.patch b/dev-python/pyfltk/files/ignore-func.patch
new file mode 100644
index 000000000000..4c3ff48fce54
--- /dev/null
+++ b/dev-python/pyfltk/files/ignore-func.patch
@@ -0,0 +1,12 @@
+https://sourceforge.net/p/pyfltk/code/506/
+
+--- a/swig/filename.i
++++ b/swig/filename.i
+@@ -14,6 +14,7 @@
+ %ignore fl_alphasort;
+ %ignore fl_casealphasort;
+ %ignore fl_casenumericsort;
++%ignore _fl_filename_isdir_quick;
+
+ %include "FL/filename.H"
+