[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fix for dfa when mixed with libsigsegv on Windows
From: |
Eric Blake |
Subject: |
Re: fix for dfa when mixed with libsigsegv on Windows |
Date: |
Tue, 06 Apr 2010 11:07:59 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Thunderbird/3.0.4 |
[adding bug-libsigsegv]
On 04/06/2010 11:02 AM, Aharon Robbins wrote:
> Hi. The Cygwin maintainer tells me that libsigsegv on Windows pulls in the
> dreaded <windows.h> header file which defines WCHAR as wchar_t, causing a
> conflict with the WCHAR in the enum in dfa.h. I propose the following diff
> which compiles OK under Linux and moves the details into dfa.c.
I can confirm that <sigsegv.h> on cygwin has this unfortunate
limitation. While libsigsegv may need to use <windows.h> inside of its
own .c files for the implementation, I think that it is a bug that the
mere use of its public header is dragging in a header that is better off
avoided in typical cygwin programs. I'll see if I can help work up a
libsigsegv patch.
Meanwhile, your patch for dfa.h looks reasonable to me.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
Re: fix for dfa when mixed with libsigsegv on Windows, Jim Meyering, 2010/04/06