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;