Corinna Vinschen | 26 Jun 15:19 2012
Picon

[patch] Cygwin support, part 0

Hi,

for a start in supporting Cygwin, I created this patch.  It doesn't
error out just because _WIN32 is not defined and the new _cygwin.h file
(which will probably get a lot more to do later on) just makes sure that
_mingw.h does not define POSIX types.

Additionally, I changed vadefs.h so that it doesn't test for _WIN32
at all.  After all, it includes _mingw.h which runs this test anyway.

Hope that's ok,
Corinna

mingw-w64-headers/ChangeLog:

	* configure.ac (BASEHEAD_LIST): Add _cygwin.h.
	* configure: Regenerate.

mingw-w64-headers/crt/ChangeLog:

	* _cygwin.h: New file.
	* _mingw.h.in: Include _cygwin.h when building a Cygwin application.
	Allow building Cygwin applications even though _WIN32 isn't defined.
	* vadefs.h: Drop test for _WIN32 since it's done in _mingw.h.

Index: mingw-w64-headers/configure.ac
===================================================================
--- mingw-w64-headers/configure.ac	(revision 5132)
+++ mingw-w64-headers/configure.ac	(working copy)
 <at>  <at>  -41,7 +41,7  <at>  <at> 
(Continue reading)

Kai Tietz | 26 Jun 15:34 2012

Re: [patch] Cygwin support, part 0

Hi Corinna,

2012/6/26 Corinna Vinschen <vinschen@...>:
> Hi,
>
> for a start in supporting Cygwin, I created this patch.  It doesn't
> error out just because _WIN32 is not defined and the new _cygwin.h file
> (which will probably get a lot more to do later on) just makes sure that
> _mingw.h does not define POSIX types.
>
> Additionally, I changed vadefs.h so that it doesn't test for _WIN32
> at all.  After all, it includes _mingw.h which runs this test anyway.
>
>
> Hope that's ok,
> Corinna
>
>
> mingw-w64-headers/ChangeLog:
>
>        * configure.ac (BASEHEAD_LIST): Add _cygwin.h.
>        * configure: Regenerate.
>
> mingw-w64-headers/crt/ChangeLog:
>
>        * _cygwin.h: New file.
>        * _mingw.h.in: Include _cygwin.h when building a Cygwin application.
>        Allow building Cygwin applications even though _WIN32 isn't defined.
>        * vadefs.h: Drop test for _WIN32 since it's done in _mingw.h.
>
(Continue reading)

Jacek Caban | 26 Jun 15:42 2012

Re: [patch] Cygwin support, part 0

On 06/26/12 15:34, Kai Tietz wrote:
> Hi Corinna,
>
> 2012/6/26 Corinna Vinschen <vinschen@...>:
>> Hi,
>>
>> for a start in supporting Cygwin, I created this patch.  It doesn't
>> error out just because _WIN32 is not defined and the new _cygwin.h file
>> (which will probably get a lot more to do later on) just makes sure that
>> _mingw.h does not define POSIX types.
>>
>> Additionally, I changed vadefs.h so that it doesn't test for _WIN32
>> at all.  After all, it includes _mingw.h which runs this test anyway.
>>
>>
>> Hope that's ok,
>> Corinna
>>
>>
>> mingw-w64-headers/ChangeLog:
>>
>>        * configure.ac (BASEHEAD_LIST): Add _cygwin.h.
>>        * configure: Regenerate.
>>
>> mingw-w64-headers/crt/ChangeLog:
>>
>>        * _cygwin.h: New file.
>>        * _mingw.h.in: Include _cygwin.h when building a Cygwin application.
>>        Allow building Cygwin applications even though _WIN32 isn't defined.
>>        * vadefs.h: Drop test for _WIN32 since it's done in _mingw.h.
(Continue reading)

Kai Tietz | 26 Jun 15:47 2012

Re: [patch] Cygwin support, part 0

2012/6/26 Jacek Caban <jacek@...>:
> On 06/26/12 15:34, Kai Tietz wrote:
>> Hi Corinna,
>>
>> 2012/6/26 Corinna Vinschen <vinschen@...>:
>>> Hi,
>>>
>>> for a start in supporting Cygwin, I created this patch.  It doesn't
>>> error out just because _WIN32 is not defined and the new _cygwin.h file
>>> (which will probably get a lot more to do later on) just makes sure that
>>> _mingw.h does not define POSIX types.
>>>
>>> Additionally, I changed vadefs.h so that it doesn't test for _WIN32
>>> at all.  After all, it includes _mingw.h which runs this test anyway.
>>>
>>>
>>> Hope that's ok,
>>> Corinna
>>>
>>>
>>> mingw-w64-headers/ChangeLog:
>>>
>>>        * configure.ac (BASEHEAD_LIST): Add _cygwin.h.
>>>        * configure: Regenerate.
>>>
>>> mingw-w64-headers/crt/ChangeLog:
>>>
>>>        * _cygwin.h: New file.
>>>        * _mingw.h.in: Include _cygwin.h when building a Cygwin application.
>>>        Allow building Cygwin applications even though _WIN32 isn't defined.
(Continue reading)

Corinna Vinschen | 26 Jun 16:02 2012
Picon

Re: [patch] Cygwin support, part 0

On Jun 26 15:34, Kai Tietz wrote:
> Hi Corinna,
> 
> 2012/6/26 Corinna Vinschen <vinschen <at> redhat.com>:
> > Hi,
> >
> > for a start in supporting Cygwin, I created this patch.  It doesn't
> > error out just because _WIN32 is not defined and the new _cygwin.h file
> > (which will probably get a lot more to do later on) just makes sure that
> > _mingw.h does not define POSIX types.
> >
> > Additionally, I changed vadefs.h so that it doesn't test for _WIN32
> > at all.  After all, it includes _mingw.h which runs this test anyway.
> >
> >
> > Hope that's ok,
> > Corinna
> > [...]
> > Index: mingw-w64-headers/crt/_mingw.h.in
> > ===================================================================
> > --- mingw-w64-headers/crt/_mingw.h.in   (revision 5132)
> > +++ mingw-w64-headers/crt/_mingw.h.in   (working copy)
> >  <at>  <at>  -12,6 +12,11  <at>  <at> 
> >  #include "_mingw_mac.h"
> >  #include "_mingw_secapi.h"
> >
> > +/* Include _cygwin.h if we're building a Cygwin application. */
> > +#ifdef __CYGWIN__
> > +#include "_cygwin.h"
> > +#endif
(Continue reading)

Corinna Vinschen | 26 Jun 18:13 2012
Picon

Re: [patch] Cygwin support, part 0

On Jun 26 16:02, Corinna Vinschen wrote:
> On Jun 26 15:34, Kai Tietz wrote:
> > Hi Corinna,
> > 
> > 2012/6/26 Corinna Vinschen <vinschen <at> redhat.com>:
> > > Hi,
> > >
> > > for a start in supporting Cygwin, I created this patch.  It doesn't
> > > error out just because _WIN32 is not defined and the new _cygwin.h file
> > > (which will probably get a lot more to do later on) just makes sure that
> > > _mingw.h does not define POSIX types.
> > >
> > > Additionally, I changed vadefs.h so that it doesn't test for _WIN32
> > > at all.  After all, it includes _mingw.h which runs this test anyway.
> > >
> > >
> > > Hope that's ok,
> > > Corinna
> > > [...]
> > > Index: mingw-w64-headers/crt/_mingw.h.in
> > > ===================================================================
> > > --- mingw-w64-headers/crt/_mingw.h.in   (revision 5132)
> > > +++ mingw-w64-headers/crt/_mingw.h.in   (working copy)
> > >  <at>  <at>  -12,6 +12,11  <at>  <at> 
> > >  #include "_mingw_mac.h"
> > >  #include "_mingw_secapi.h"
> > >
> > > +/* Include _cygwin.h if we're building a Cygwin application. */
> > > +#ifdef __CYGWIN__
> > > +#include "_cygwin.h"
(Continue reading)


Gmane