Wed Jan 12 10:28:53 2011: Request 64715 was acted upon. Transaction: Ticket created by RKITOVER Queue: Win32-Clipboard Subject: [PATCH] Compile Fix for MinGW/Cygwin Broken in: 0.55 Severity: Critical Owner: Nobody Requestors: rkito...@cpan.org Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=64715 >
Does not compile on Cygwin, patch attached, please upload a new version with the patch.
>From 9b9986a44faac13d62880d35ed683e564f1c433d Mon Sep 17 00:00:00 2001 From: Rafael Kitover <rkito...@cpan.org> Date: Wed, 12 Jan 2011 10:22:19 -0500 Subject: [PATCH] fix for mingw/cygwin --- Clipboard.xs | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Clipboard.xs b/Clipboard.xs index d1c6968..06e2aa2 100644 --- a/Clipboard.xs +++ b/Clipboard.xs @@ -22,6 +22,10 @@ #include <winuser.h> #include <shellapi.h> +#ifdef __GNUC__ /* mingw or cygwin */ +#include <wchar.h> +#endif + #define __TEMP_WORD WORD /* perl defines a WORD, yikes! */ #ifdef __cplusplus -- 1.7.3.3