From 9a1291fe7935aa372d87dd9b1a433915eb8e41d1 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 8 Jan 2002 09:45:10 +0000 Subject: [PATCH] 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... git-svn-id: svn://svn.tartarus.org/sgt/putty@1532 cda61777-01e9-0310-a592-d414129be87e --- Makefile | 5 +++++ pageant.rc | 4 ++++ puttygen.rc | 4 ++++ win_res.rc | 4 ++++ windlg.c | 6 ++++++ 5 files changed, 23 insertions(+) diff --git a/Makefile b/Makefile index 1c9ca13c..b69762a0 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,11 @@ # full-screen mode (configurable to work on Alt-Enter) will # 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 # Uses ASCII rather than Unicode to specify the tab control in # the resource file. Probably most useful when compiling with diff --git a/pageant.rc b/pageant.rc index 21fa13dd..299995a6 100644 --- a/pageant.rc +++ b/pageant.rc @@ -1,6 +1,10 @@ /* Some compilers, like Borland, don't have winresrc.h */ #ifndef NO_WINRESRC_H +#ifndef MSVC4 #include +#else +#include +#endif #endif /* Some systems don't define this, so I do it myself if necessary */ diff --git a/puttygen.rc b/puttygen.rc index 5efb155a..b7711c3c 100644 --- a/puttygen.rc +++ b/puttygen.rc @@ -1,6 +1,10 @@ /* Some compilers, like Borland, don't have winresrc.h */ #ifndef NO_WINRESRC_H +#ifndef MSVC4 #include +#else +#include +#endif #endif /* Some systems don't define this, so I do it myself if necessary */ diff --git a/win_res.rc b/win_res.rc index e251961f..d2d81d19 100644 --- a/win_res.rc +++ b/win_res.rc @@ -1,6 +1,10 @@ /* Some compilers, like Borland, don't have winresrc.h */ #ifndef NO_WINRESRC_H +#ifndef MSVC4 #include +#else +#include +#endif #endif /* Some systems don't define this, so I do it myself if necessary */ diff --git a/windlg.c b/windlg.c index 51a97561..202e6cf7 100644 --- a/windlg.c +++ b/windlg.c @@ -12,6 +12,12 @@ #include "win_res.h" #include "storage.h" +#ifdef MSVC4 +#define TVINSERTSTRUCT TV_INSERTSTRUCT +#define TVITEM TV_ITEM +#define ICON_BIG 1 +#endif + static char **events = NULL; static int nevents = 0, negsize = 0; -- 2.11.0