mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Can now build with /DWIN32S_COMPAT to work (minimally) with Win32s
[originally from svn r271]
This commit is contained in:
parent
1fc7bb735c
commit
ce35a4ab94
7
Makefile
7
Makefile
@ -5,15 +5,18 @@
|
|||||||
# `VER=/DRELEASE=0.43' to get version numbering; otherwise you'll
|
# `VER=/DRELEASE=0.43' to get version numbering; otherwise you'll
|
||||||
# get `Unidentified build'.
|
# get `Unidentified build'.
|
||||||
|
|
||||||
|
# COMPAT=/DWIN32S_COMPAT will produce a binary that works (minimally)
|
||||||
|
# with Win32s
|
||||||
|
|
||||||
CFLAGS = /nologo /W3 /YX /O2 /Yd /D_WINDOWS /DDEBUG /ML /Fd
|
CFLAGS = /nologo /W3 /YX /O2 /Yd /D_WINDOWS /DDEBUG /ML /Fd
|
||||||
|
|
||||||
.c.obj:
|
.c.obj:
|
||||||
cl $(FWHACK) $(CFLAGS) /c $*.c
|
cl $(COMPAT) $(FWHACK) $(CFLAGS) /c $*.c
|
||||||
|
|
||||||
PUTTYOBJS = window.obj windlg.obj terminal.obj telnet.obj raw.obj
|
PUTTYOBJS = window.obj windlg.obj terminal.obj telnet.obj raw.obj
|
||||||
OBJS1 = misc.obj noise.obj
|
OBJS1 = misc.obj noise.obj
|
||||||
OBJS2 = ssh.obj sshcrc.obj sshdes.obj sshmd5.obj sshrsa.obj sshrand.obj
|
OBJS2 = ssh.obj sshcrc.obj sshdes.obj sshmd5.obj sshrsa.obj sshrand.obj
|
||||||
OBJS3 = sshsha.obj sshblowf.obj version.obj sizetip.c
|
OBJS3 = sshsha.obj sshblowf.obj version.obj sizetip.obj
|
||||||
RESRC = win_res.res
|
RESRC = win_res.res
|
||||||
LIBS1 = advapi32.lib user32.lib gdi32.lib
|
LIBS1 = advapi32.lib user32.lib gdi32.lib
|
||||||
LIBS2 = wsock32.lib comctl32.lib comdlg32.lib
|
LIBS2 = wsock32.lib comctl32.lib comdlg32.lib
|
||||||
|
2
noise.c
2
noise.c
@ -124,8 +124,10 @@ void noise_get_light(void (*func) (void *, int)) {
|
|||||||
GetSystemTimeAdjustment(&adjust[0], &adjust[1], &rubbish);
|
GetSystemTimeAdjustment(&adjust[0], &adjust[1], &rubbish);
|
||||||
func(&adjust, sizeof(adjust));
|
func(&adjust, sizeof(adjust));
|
||||||
|
|
||||||
|
#ifndef WIN32S_COMPAT
|
||||||
if (GetSystemPowerStatus(&pwrstat))
|
if (GetSystemPowerStatus(&pwrstat))
|
||||||
func(&pwrstat, sizeof(pwrstat));
|
func(&pwrstat, sizeof(pwrstat));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user