diff options
| author | Phillip Lord | 2015-11-26 18:09:15 +0000 |
|---|---|---|
| committer | Phillip Lord | 2015-11-26 18:09:15 +0000 |
| commit | ae18cc20f899335cede183f18221b6aae539fd51 (patch) | |
| tree | bcd9c941929a1aa71fed43c167ee2e394f843091 /src | |
| parent | 13a03c9083a01b30e25a81dd6ecf0da4c7fbd32a (diff) | |
| parent | 6f5f62b3c79485245b1f6d3d9a33d72da92c9e1d (diff) | |
| download | emacs-ae18cc20f899335cede183f18221b6aae539fd51.tar.gz emacs-ae18cc20f899335cede183f18221b6aae539fd51.zip | |
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 8 | ||||
| -rw-r--r-- | src/w32.h | 6 |
2 files changed, 9 insertions, 5 deletions
| @@ -7432,7 +7432,7 @@ sys_socket (int af, int type, int protocol) | |||
| 7432 | if (winsock_lib == NULL) | 7432 | if (winsock_lib == NULL) |
| 7433 | { | 7433 | { |
| 7434 | errno = ENETDOWN; | 7434 | errno = ENETDOWN; |
| 7435 | return INVALID_SOCKET; | 7435 | return -1; |
| 7436 | } | 7436 | } |
| 7437 | 7437 | ||
| 7438 | check_errno (); | 7438 | check_errno (); |
| @@ -9270,8 +9270,10 @@ maybe_load_unicows_dll (void) | |||
| 9270 | pointers, and assign the correct addresses to these | 9270 | pointers, and assign the correct addresses to these |
| 9271 | pointers at program startup (see emacs.c, which calls | 9271 | pointers at program startup (see emacs.c, which calls |
| 9272 | this function early on). */ | 9272 | this function early on). */ |
| 9273 | pMultiByteToWideChar = GetProcAddress (ret, "MultiByteToWideChar"); | 9273 | pMultiByteToWideChar = |
| 9274 | pWideCharToMultiByte = GetProcAddress (ret, "WideCharToMultiByte"); | 9274 | (MultiByteToWideChar_Proc)GetProcAddress (ret, "MultiByteToWideChar"); |
| 9275 | pWideCharToMultiByte = | ||
| 9276 | (WideCharToMultiByte_Proc)GetProcAddress (ret, "WideCharToMultiByte"); | ||
| 9275 | return ret; | 9277 | return ret; |
| 9276 | } | 9278 | } |
| 9277 | else | 9279 | else |
| @@ -179,8 +179,10 @@ extern int _sys_wait_connect (int fd); | |||
| 179 | 179 | ||
| 180 | extern HMODULE w32_delayed_load (Lisp_Object); | 180 | extern HMODULE w32_delayed_load (Lisp_Object); |
| 181 | 181 | ||
| 182 | extern int (WINAPI *pMultiByteToWideChar)(UINT,DWORD,LPCSTR,int,LPWSTR,int); | 182 | typedef int (WINAPI *MultiByteToWideChar_Proc)(UINT,DWORD,LPCSTR,int,LPWSTR,int); |
| 183 | extern int (WINAPI *pWideCharToMultiByte)(UINT,DWORD,LPCWSTR,int,LPSTR,int,LPCSTR,LPBOOL); | 183 | typedef int (WINAPI *WideCharToMultiByte_Proc)(UINT,DWORD,LPCWSTR,int,LPSTR,int,LPCSTR,LPBOOL); |
| 184 | extern MultiByteToWideChar_Proc pMultiByteToWideChar; | ||
| 185 | extern WideCharToMultiByte_Proc pWideCharToMultiByte; | ||
| 184 | 186 | ||
| 185 | extern void init_environment (char **); | 187 | extern void init_environment (char **); |
| 186 | extern void check_windows_init_file (void); | 188 | extern void check_windows_init_file (void); |