1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-09 23:28:06 -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:
Simon Tatham 2002-01-08 09:45:10 +00:00
parent c7aec27d6f
commit 9e6923016c
5 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -1,6 +1,10 @@
/* Some compilers, like Borland, don't have winresrc.h */
#ifndef NO_WINRESRC_H
#ifndef MSVC4
#include <winresrc.h>
#else
#include <winres.h>
#endif
#endif
/* Some systems don't define this, so I do it myself if necessary */

View File

@ -1,6 +1,10 @@
/* Some compilers, like Borland, don't have winresrc.h */
#ifndef NO_WINRESRC_H
#ifndef MSVC4
#include <winresrc.h>
#else
#include <winres.h>
#endif
#endif
/* Some systems don't define this, so I do it myself if necessary */

View File

@ -1,6 +1,10 @@
/* Some compilers, like Borland, don't have winresrc.h */
#ifndef NO_WINRESRC_H
#ifndef MSVC4
#include <winresrc.h>
#else
#include <winres.h>
#endif
#endif
/* Some systems don't define this, so I do it myself if necessary */

View File

@ -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;