#1846: win32 compile fails on sysmem.c on mingw gcc 4.5 (w. workaround)
----------------------+-----------------------------------------------------
 Reporter:  ronaldws  |        Type:  bug   
   Status:  new       |    Priority:  normal
Milestone:  2.10      |   Component:  build 
  Version:  2.10.0    |    Severity:  medium
 Keywords:            |        Lang:        
    Patch:            |    Platform:  win32 
----------------------+-----------------------------------------------------

Comment(by ronaldws):

 _WIN32_WINNT is essentially a copy of the definition of WINVER in my
 environment and my value of 0x0400 seems to correspond to WinNT
 4.0/Windows 98.  Parrot probably doesn't want to support those versions of
 Windows.  I found some documentation on WINVER at the links included below
 and when I changed mine to 0x0501 (for WinXP) things compiled OK.  I find
 it reasonable for the compiler to detect such a condition more clearly and
 will attach a patch to emit a compile time error for Windows versions less
 than Windows2000 under gcc.

 Hope this helps someone.

 Some helpful links:[[BR]]
 [http://old.nabble.com/-define-WINVER-0x0400-td17201634.html Some
 postings][[BR]]
 [http://msdn.microsoft.com/en-
 us/library/aa383745.aspx#setting_winver_or__win32_winnt A link from
 Microsoft][[BR]]
 [http://oldwiki.mingw.org/index.php/header-w32api_h Mingw wiki posting
 about definitions of windows versions][[BR]]

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1846#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to