Bug 5162 – windows.d no longer appears to compile in DMD 2.050
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-11-03T23:34:00Z
Last change time
2010-11-04T10:05:42Z
Keywords
patch
Assigned to
nobody
Creator
debio264
Comments
Comment #0 by debio264 — 2010-11-03T23:34:53Z
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 by clugdbug — 2010-11-04T01:17:45Z
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).