This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem when cross-compiling trunk in libgcc2.c
- From: "Vincent R." <forumer at smartmobili dot com>
- To: Ozkan Sezer <sezeroz at gmail dot com>
- Cc: gcc at gcc dot gnu dot org, hjl dot tools at gmail dot com
- Date: Thu, 19 Mar 2009 19:04:44 +0100
- Subject: Re: Problem when cross-compiling trunk in libgcc2.c
- References: <647fe9b10903191058k516eb34j12f9b69735ed0be3@mail.gmail.com>
On Thu, 19 Mar 2009 19:58:13 +0200, Ozkan Sezer <sezeroz@gmail.com> wrote:
> I'm a bit amazed that the prototype for VirtualProtect() is known to the
> compiler but the definition of DWORD is not.. In any case, it should be
> fixed easily by changing DWORD into unsigned int which is what a
> DWORD is always defined as. And PR 39063 is still open anyway.
> --
> Ozkan
Yes you are right about the fact VirtualProtect is defined and not DWORD so
something is wrong with my includes
However you are wrong about DWORD definition it has always be defined
like this :
typedef unsigned long DWORD, *PDWORD, *LPDWORD;
at least windows.