Alien-IUP
view release on metacpan or search on metacpan
patches/mglplot-cygwin.diff view on Meta::CPAN
@@ -610,7 +610,7 @@
char *f=new char[n+1]; memcpy(f,descr,n); f[n]=0;
mgl_write_frame(_GR_,s,f); delete []s; delete []f;}
//-----------------------------------------------------------------------------
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
#include <io.h>
#include <direct.h>
#endif
diff -ru iup.orig/srcmglplot/src/parser.cpp iup.patched/srcmglplot/src/parser.cpp
--- iup.orig/srcmglplot/src/parser.cpp 2015-02-05 16:54:20.100248600 +0100
+++ iup.patched/srcmglplot/src/parser.cpp 2015-02-05 18:36:39.368886400 +0100
@@ -22,7 +22,7 @@
#include "mgl2/canvas_cf.h"
#include "mgl2/base.h"
//-----------------------------------------------------------------------------
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
#include <io.h>
wchar_t *wcstokw32(wchar_t *wcs, const wchar_t *delim) { return wcstok(wcs,delim); }
#define wcstok(a,b,c) wcstokw32(a,b)
patches/old-cygwin.diff view on Meta::CPAN
diff -u iup.orig/src/win/iupwin_dialog.c iup.new/src/win/iupwin_dialog.c
--- iup.orig/src/win/iupwin_dialog.c 2016-03-18 19:39:13.000000000 +0100
+++ iup.new/src/win/iupwin_dialog.c 2016-07-09 16:35:20.799022400 +0200
@@ -58,7 +58,9 @@
ITaskbarList3 resources
****************************************************************/
#ifndef __MINGW32__
+#if !defined(__GNUC__) || __GNUC__ > 3
#include "Shobjidl.h"
+#endif
#ifdef __ITaskbarList3_FWD_DEFINED__ /* Only available since VC10 */
( run in 1.423 second using v1.01-cache-2.11-cpan-7add2cbd662 )