mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Miscellaneous fixes to try to make other compilers happier
[originally from svn r691]
This commit is contained in:
parent
5e71961719
commit
e48981def4
7
be_all.c
7
be_all.c
@ -4,6 +4,13 @@
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include "putty.h"
|
||||
|
||||
|
@ -5,6 +5,13 @@
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include "putty.h"
|
||||
|
||||
|
@ -4,6 +4,13 @@
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include "putty.h"
|
||||
|
||||
|
7
ldisc.c
7
ldisc.c
@ -1,4 +1,11 @@
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
7
misc.c
7
misc.c
@ -1,4 +1,11 @@
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "putty.h"
|
||||
|
7
noise.c
7
noise.c
@ -4,6 +4,13 @@
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
|
||||
#include "putty.h"
|
||||
|
@ -3,6 +3,13 @@
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include "putty.h"
|
||||
#include "storage.h"
|
||||
|
@ -1,4 +1,11 @@
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <winreg.h>
|
||||
#include <tchar.h>
|
||||
#include <stdio.h>
|
||||
|
2
sshsha.c
2
sshsha.c
@ -7,8 +7,6 @@
|
||||
|
||||
#include "ssh.h"
|
||||
|
||||
typedef unsigned int uint32;
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
* Core SHA algorithm: processes 16-word blocks into a message digest.
|
||||
*/
|
||||
|
@ -1,4 +1,11 @@
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
2
window.c
2
window.c
@ -745,7 +745,7 @@ font_messup:
|
||||
|
||||
if (cfg.fontisbold) {
|
||||
fw_dontcare = FW_BOLD;
|
||||
fw_bold = FW_BLACK;
|
||||
fw_bold = FW_HEAVY;
|
||||
} else {
|
||||
fw_dontcare = FW_DONTCARE;
|
||||
fw_bold = FW_BOLD;
|
||||
|
@ -4,6 +4,13 @@
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#ifndef AUTO_WINSOCK
|
||||
#ifdef WINSOCK_TWO
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include "putty.h"
|
||||
#include "storage.h"
|
||||
|
Loading…
Reference in New Issue
Block a user