mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-20 20:45:02 -05:00
Patch from RDB: invent a /DMSVC4 compile-time definition which
renames header files and symbols etc. Now if I could only _find_ my copy of MSVC4 we might even be able to build Win32s binaries... [originally from svn r1532]
This commit is contained in:
parent
c7aec27d6f
commit
9e6923016c
5
Makefile
5
Makefile
@ -46,6 +46,11 @@
|
|||||||
# full-screen mode (configurable to work on Alt-Enter) will
|
# full-screen mode (configurable to work on Alt-Enter) will
|
||||||
# not behave usefully in a multi-monitor environment.
|
# not behave usefully in a multi-monitor environment.
|
||||||
#
|
#
|
||||||
|
# - COMPAT=/DMSVC4
|
||||||
|
# - RCFL=/DMSVC4
|
||||||
|
# Makes a couple of minor changes so that PuTTY compiles using
|
||||||
|
# MSVC 4. You will also need /DNO_SECURITY and /DNO_MULTIMON.
|
||||||
|
#
|
||||||
# - RCFL=/DASCIICTLS
|
# - RCFL=/DASCIICTLS
|
||||||
# Uses ASCII rather than Unicode to specify the tab control in
|
# Uses ASCII rather than Unicode to specify the tab control in
|
||||||
# the resource file. Probably most useful when compiling with
|
# the resource file. Probably most useful when compiling with
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
/* Some compilers, like Borland, don't have winresrc.h */
|
/* Some compilers, like Borland, don't have winresrc.h */
|
||||||
#ifndef NO_WINRESRC_H
|
#ifndef NO_WINRESRC_H
|
||||||
|
#ifndef MSVC4
|
||||||
#include <winresrc.h>
|
#include <winresrc.h>
|
||||||
|
#else
|
||||||
|
#include <winres.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Some systems don't define this, so I do it myself if necessary */
|
/* Some systems don't define this, so I do it myself if necessary */
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
/* Some compilers, like Borland, don't have winresrc.h */
|
/* Some compilers, like Borland, don't have winresrc.h */
|
||||||
#ifndef NO_WINRESRC_H
|
#ifndef NO_WINRESRC_H
|
||||||
|
#ifndef MSVC4
|
||||||
#include <winresrc.h>
|
#include <winresrc.h>
|
||||||
|
#else
|
||||||
|
#include <winres.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Some systems don't define this, so I do it myself if necessary */
|
/* Some systems don't define this, so I do it myself if necessary */
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
/* Some compilers, like Borland, don't have winresrc.h */
|
/* Some compilers, like Borland, don't have winresrc.h */
|
||||||
#ifndef NO_WINRESRC_H
|
#ifndef NO_WINRESRC_H
|
||||||
|
#ifndef MSVC4
|
||||||
#include <winresrc.h>
|
#include <winresrc.h>
|
||||||
|
#else
|
||||||
|
#include <winres.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Some systems don't define this, so I do it myself if necessary */
|
/* Some systems don't define this, so I do it myself if necessary */
|
||||||
|
6
windlg.c
6
windlg.c
@ -12,6 +12,12 @@
|
|||||||
#include "win_res.h"
|
#include "win_res.h"
|
||||||
#include "storage.h"
|
#include "storage.h"
|
||||||
|
|
||||||
|
#ifdef MSVC4
|
||||||
|
#define TVINSERTSTRUCT TV_INSERTSTRUCT
|
||||||
|
#define TVITEM TV_ITEM
|
||||||
|
#define ICON_BIG 1
|
||||||
|
#endif
|
||||||
|
|
||||||
static char **events = NULL;
|
static char **events = NULL;
|
||||||
static int nevents = 0, negsize = 0;
|
static int nevents = 0, negsize = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user