[rt.cpan.org #64715] [PATCH] Compile Fix for MinGW/Cygwin

[email protected] ("Rafael Kitover via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
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: [email protected]
      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.
0001-fix-for-mingw-cygwin.patch (text/plain, 612 B)
From 9b9986a44faac13d62880d35ed683e564f1c433d Mon Sep 17 00:00:00 2001
From: Rafael Kitover <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.