Re: Cygwin 64bits gcc produces erroneous constants with the win32 headers.

2016-04-15 Thread Corinna Vinschen
On Apr 15 13:55, Nicolas Noble wrote: > > I can see how this was confusing, yes. I was trying to make the point that > Dang I fail with e-mails lately. The rest of the sentence is > "mingw64's compiler has sizeof(long) == 4". Yes, sure. Mingw's gcc targets Windows, Cygwin's gcc targets Cygwin in

Re: Cygwin 64bits gcc produces erroneous constants with the win32 headers.

2016-04-15 Thread Corinna Vinschen
On Apr 15 13:54, Nicolas Noble wrote: > > > However, Mingw-w64 already contains a lot of changes to accommodate > > the Cygwin LP64 environment, and incidentally there's already a type > > available which does the right thing, so it might be a good idea to > > suggest using that: > > > > #define F

Re: Cygwin 64bits gcc produces erroneous constants with the win32 headers.

2016-04-15 Thread Nicolas Noble
> I can see how this was confusing, yes. I was trying to make the point that Dang I fail with e-mails lately. The rest of the sentence is "mingw64's compiler has sizeof(long) == 4". -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentatio

Re: Cygwin 64bits gcc produces erroneous constants with the win32 headers.

2016-04-15 Thread Nicolas Noble
>> Right, but that isn't the same thing. I am well aware of the various >> issues tied with sizeof(long), > > Sorry, I wasn't aware of this since you wrote something along the lines > of gcc should make sizeof(long) == 4 which just doesn't make sense in an > LP64 environment. I can see how this wa

Re: Cygwin 64bits gcc produces erroneous constants with the win32 headers.

2016-04-15 Thread Corinna Vinschen
On Apr 15 22:41, Corinna Vinschen wrote: > On Apr 15 12:56, Nicolas Noble wrote: > > This is an issue > > when trying to compile a 64 bits binary that uses the win32 api, > > nothing more. > > One problem is that you're not supposed to use WinSock or the winsock > headers when compiling Cygwin ap

Re: Cygwin 64bits gcc produces erroneous constants with the win32 headers.

2016-04-15 Thread Corinna Vinschen
On Apr 15 12:56, Nicolas Noble wrote: > On Fri, Apr 15, 2016 at 12:23 PM, Corinna Vinschen > wrote: > > On Apr 15 12:05, Nicolas Noble wrote: > >> I originally entered a bug on msys2's bug tracker, but it turns out > >> they only repackage cygwin packages, and I have verified this is an > >> issue

Re: Cygwin 64bits gcc produces erroneous constants with the win32 headers.

2016-04-15 Thread Nicolas Noble
On Fri, Apr 15, 2016 at 12:23 PM, Corinna Vinschen wrote: > On Apr 15 12:05, Nicolas Noble wrote: >> I originally entered a bug on msys2's bug tracker, but it turns out >> they only repackage cygwin packages, and I have verified this is an >> issue on cygwin too, so I am now sending that report he

Re: Cygwin 64bits gcc produces erroneous constants with the win32 headers.

2016-04-15 Thread Corinna Vinschen
On Apr 15 12:05, Nicolas Noble wrote: > I originally entered a bug on msys2's bug tracker, but it turns out > they only repackage cygwin packages, and I have verified this is an > issue on cygwin too, so I am now sending that report here. > > Original entry: > > https://github.com/Alexpux/MSYS2-p

Cygwin 64bits gcc produces erroneous constants with the win32 headers.

2016-04-15 Thread Nicolas Noble
I originally entered a bug on msys2's bug tracker, but it turns out they only repackage cygwin packages, and I have verified this is an issue on cygwin too, so I am now sending that report here. Original entry: https://github.com/Alexpux/MSYS2-packages/issues/555 Basically, the 64 bits "gcc-co