D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5162 - windows.d no longer appears to compile in DMD 2.050
Summary: windows.d no longer appears to compile in DMD 2.050
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-11-03 23:34 UTC by Andrew Wiley
Modified: 2010-11-04 10:05 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrew Wiley 2010-11-03 23:34:53 UTC
Compiling code that depends on windows.d results in these compiler messages:

C:\D\dmd2\windows\bin\..\..\src\druntime\import\core\sys\windows\windows.d(140): C-style function pointer and pointer to array syntax is deprecated. Use 'function' to declare function pointers
C:\D\dmd2\windows\bin\..\..\src\druntime\import\core\sys\windows\windows.d(2039): C-style function pointer and pointer to array syntax is deprecated. Use 'function' to declare function pointers
C:\D\dmd2\windows\bin\..\..\src\druntime\import\core\sys\windows\windows.d(2538): C-style function pointer and pointer to array syntax is deprecated. Use 'function' to declare function pointers
C:\D\dmd2\windows\bin\..\..\src\druntime\import\core\sys\windows\windows.d(3061): C-style function pointer and pointer to array syntax is deprecated. Use 'function' to declare function pointers
Comment 1 Don 2010-11-04 01:17:45 UTC
You're right, there's an ancient 'windows.d' in the download. It just shouldn't exist.

If you delete
src\druntime\import\core\sys\windows\windows.d
everything should work (it should be using the windows.di file).
Comment 2 Walter Bright 2010-11-04 10:05:42 UTC
Fixed the download zip.