Changeset 201

Show
Ignore:
Timestamp:
08/25/07 08:46:16 (5 years ago)
Author:
smjg
Message:

Fixed a few version-dependent compile errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/win32/accctrl.d

    r194 r201  
    1717 
    1818static assert (_WIN32_WINNT_ONLY, 
    19     "win32.accctrl is available only if version WindowsNTonly, WindowsXP
    20     "or Windows2003 is set"); 
     19    "win32.accctrl is available only if version WindowsNTonly, WindowsXP,
     20    "Windows2003 or WindowsVista is set"); 
    2121 
    2222alias LocalFree AccFree; 
  • trunk/win32/aclapi.d

    r194 r201  
    1515 
    1616static assert (_WIN32_WINNT_ONLY, 
    17     "win32.aclapi is available only if version WindowsNTonly, WindowsXP
    18     "or Windows2003 is set"); 
     17    "win32.aclapi is available only if version WindowsNTonly, WindowsXP,
     18    "Windows2003 or WindowsVista is set"); 
    1919 
    2020extern (Windows) { 
  • trunk/win32/aclui.d

    r168 r201  
    1212pragma(lib, "aclui.lib"); 
    1313 
     14private import win32.w32api; 
     15 
     16static assert (_WIN32_WINNT_ONLY && _WIN32_WINNT >= 0x500, 
     17    "win32.aclui is available only if version WindowsXP, Windows2003 " 
     18    "or WindowsVista is set, or both Windows2000 and WindowsNTonly are set"); 
     19 
    1420import win32.accctrl, win32.commctrl, win32.objbase; 
    1521private import win32.basetyps, win32.prsht, win32.unknwn, win32.windef, 
    1622  win32.winuser; 
     23 
    1724 
    1825struct SI_OBJECT_INFO { 
  • trunk/win32/dhcpcsdk.d

    r135 r201  
    1313private import win32.w32api, win32.windef; 
    1414 
    15 static if (!_WIN32_WINNT_ONLY || _WIN32_WINNT < 0x500) { 
    16     pragma(msg, 
    17 "win32.dhcpcsdk is available only if version WindowsXP or Windows2003 is set, 
    18 or both Windows2000 and WindowsNTonly are set"); 
    19     static assert (false); 
    20 
     15static assert (_WIN32_WINNT_ONLY && _WIN32_WINNT >= 0x500, 
     16"win32.dhcpcsdk is available only if version WindowsXP, Windows2003 
     17or WindowsVista is set, or both Windows2000 and WindowsNTonly are set"); 
    2118 
    2219//#if (_WIN32_WINNT >= 0x0500) 
  • trunk/win32/errorrep.d

    r135 r201  
    1313private import win32.w32api, win32.windef; 
    1414 
    15 static if (_WIN32_WINNT < 0x501) { 
    16     pragma(msg, 
    17 "win32.errorrep is available only if version WindowsXP or Windows2003 is set"); 
    18     static assert (false); 
    19 
     15static assert (_WIN32_WINNT >= 0x501, 
     16    "win32.errorrep is available only if version WindowsXP, Windows2003 " 
     17    "or WindowsVista is set"); 
    2018 
    2119enum EFaultRepRetVal { 
  • trunk/win32/lmmsg.d

    r165 r201  
    1313private import win32.lmcons, win32.windef, win32.w32api; 
    1414 
    15 static if (!_WIN32_WINNT_ONLY || _WIN32_WINNT < 0x501) { 
    16     pragma(msg, 
    17 "win32.lmmsg is available only if version WindowsXP or Windows2003 is set"); 
    18     static assert (false); 
    19 
     15static assert (_WIN32_WINNT_ONLY && _WIN32_WINNT >= 0x501, 
     16    "win32.lmmsg is available only if version WindowsXP, Windows2003 " 
     17    "or WindowsVista is set"); 
    2018 
    2119const MSGNAME_NOT_FORWARDED  = 0; 
  • trunk/win32/testall.d

    r180 r201  
    1010import win32.dxerr9; 
    1111import win32.oleacc; 
    12 import win32.aclui; 
    1312import win32.comcat; 
    1413import win32.cpl; 
     
    9392    import win32.secext; 
    9493} else version (WindowsNTonly) { 
    95     version (Windows2000) import win32.dhcpcsdk; 
     94    version (Windows2000) { 
     95        import win32.dhcpcsdk; 
     96        import win32.aclui; 
     97    } 
    9698} 
  • trunk/win32/windef.d

    r177 r201  
    6969alias HANDLE HGLOBAL, HLOCAL, GLOBALHANDLE, LOCALHANDLE, HGDIOBJ, HACCEL, 
    7070  HBITMAP, HBRUSH, HCOLORSPACE, HDC, HGLRC, HDESK, HENHMETAFILE, HFONT, 
    71   HICON, HKEY, HMENU, HMETAFILE, HINSTANCE, HMODULE, HPALETTE, HPEN, HRGN, 
    72   HRSRC, HSTR, HTASK, HWND, HWINSTA, HKL, HCURSOR; 
     71  HICON, HINSTANCE, HKEY, HMENU, HMETAFILE, HMODULE, HMONITOR, HPALETTE, HPEN, 
     72  HRGN, HRSRC, HSTR, HTASK, HWND, HWINSTA, HKL, HCURSOR; 
    7373alias HANDLE* PHKEY; 
    74  
    75 static if (WINVER >= 0x410) { 
    76     alias HANDLE HMONITOR; 
    77 } 
    7874 
    7975static if (WINVER >= 0x500) { 
  • trunk/win32/winsvc.d

    r155 r201  
    1414private import win32.w32api, win32.windef; 
    1515 
    16 static if (!_WIN32_WINNT_ONLY) { 
    17     pragma(msg, "win32.winsvc is available only if version WindowsNTonly, 
    18 WindowsXP or Windows2003 is set"); 
    19     static assert (false); 
    20 
     16static assert (_WIN32_WINNT_ONLY, 
     17    "win32.winsvc is available only if version WindowsNTonly, WindowsXP, " 
     18    "Windows2003 or WindowsVista is set"); 
    2119 
    2220