X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fsyswindows.h;h=131c155d0edf44754745d328d4073da6836bfd40;hb=43832d21823b1480b4d0d5ddd10ed70cf37ea91c;hp=eee6fa9d81e977d8ded274c4c087cddf7efe1075;hpb=02f4d2761a98c5cb9d5b423d2361160a5d8c9ee4;p=chise%2Fxemacs-chise.git.1 diff --git a/src/syswindows.h b/src/syswindows.h index eee6fa9..131c155 100644 --- a/src/syswindows.h +++ b/src/syswindows.h @@ -74,6 +74,7 @@ extern BOOL WINAPI PlaySound(LPCSTR,HMODULE,DWORD); #define Status int #endif #include +#include #include #include #endif @@ -106,6 +107,17 @@ extern BOOL WINAPI PlaySound(LPCSTR,HMODULE,DWORD); #define PHYSICALOFFSETY 113 #endif +/* shlobj.h defines. */ +#ifndef BIF_EDITBOX +#define BIF_EDITBOX 0x10 +#endif +#ifndef BIF_VALIDATE +#define BIF_VALIDATE 0x20 +#endif +#ifndef BFFM_VALIDATEFAILED +#define BFFM_VALIDATEFAILED 3 +#endif + /* windows.h defines. */ #if defined (CYGWIN) && (CYGWIN_VERSION_DLL_MAJOR < 20) typedef NMHDR *LPNMHDR; @@ -168,6 +180,9 @@ typedef NMHDR *LPNMHDR; #ifndef MAC_CHARSET #define MAC_CHARSET 77 #endif +#ifndef LOCALE_RETURN_NUMBER +#define LOCALE_RETURN_NUMBER 0x20000000 +#endif /***************************************************************/ @@ -175,7 +190,7 @@ typedef NMHDR *LPNMHDR; #include -#ifdef CYGWIN +#if defined (CYGWIN) && (CYGWIN_VERSION_DLL_COMBINED < 190) /* All but wcscmp and wcslen left out of Cygwin headers -- but present in /usr/include/mingw32/string.h! */ @@ -238,10 +253,15 @@ Lisp_Object tstr_to_local_file_format (Extbyte *pathout); #define LOCAL_TO_WIN32_FILE_FORMAT(path, pathout) \ do { \ Lisp_Object ltwff1 = (path); \ - int ltwff2 = \ - cygwin_posix_to_win32_path_list_buf_size (XSTRING_DATA (ltwff1)); \ - pathout = (Bufbyte *) alloca (ltwff2); \ - cygwin_posix_to_win32_path_list (XSTRING_DATA (ltwff1), pathout); \ + Bufbyte* ltwffp = XSTRING_DATA (ltwff1); \ + if (isalpha (ltwffp[0]) && (IS_DEVICE_SEP (ltwffp[1]))) \ + pathout = ltwffp; \ + else { \ + int ltwff2 = \ + cygwin_posix_to_win32_path_list_buf_size (ltwffp); \ + pathout = (Bufbyte *) alloca (ltwff2); \ + cygwin_posix_to_win32_path_list (ltwffp, pathout); \ + } \ } while (0) #else #define LOCAL_TO_WIN32_FILE_FORMAT(path, pathout) \