1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Pull out the common compiler-specific workarounds and so on from individual

resource files into windows/rcstuff.h.

[originally from svn r5405]
This commit is contained in:
Jacob Nevins 2005-02-26 17:43:47 +00:00
parent 1b3b065afc
commit eba099d006
4 changed files with 49 additions and 64 deletions

View File

@ -1,22 +1,8 @@
/* Some compilers, like Borland, don't have winresrc.h */
#ifdef __LCC__
#include <win.h>
#else
/*
* Windows resources for Pageant.
*/
#ifndef NO_WINRESRC_H
#ifndef MSVC4
#include <winresrc.h>
#else
#include <winres.h>
#endif
#endif
#endif /* end #ifdef __LCC__ */
/* Some systems don't define this, so I do it myself if necessary */
#ifndef RT_MANIFEST
#define RT_MANIFEST 24
#endif
#include "rcstuff.h"
200 ICON "pageant.ico"
201 ICON "pageants.ico"

View File

@ -1,22 +1,8 @@
/* Some compilers, like Borland, don't have winresrc.h */
#ifdef __LCC__
#include <win.h>
#else
/*
* Windows resources for PuTTYgen.
*/
#ifndef NO_WINRESRC_H
#ifndef MSVC4
#include <winresrc.h>
#else
#include <winres.h>
#endif
#endif
#endif /* end #ifdef __LCC__ */
/* Some systems don't define this, so I do it myself if necessary */
#ifndef RT_MANIFEST
#define RT_MANIFEST 24
#endif
#include "rcstuff.h"
200 ICON "puttygen.ico"

37
windows/rcstuff.h Normal file
View File

@ -0,0 +1,37 @@
/*
* Miscellaneous stuff to include in all .rc files.
*/
#ifndef PUTTY_RCSTUFF_H
#define PUTTY_RCSTUFF_H
#ifdef __LCC__
#include <win.h>
#else
/* Some compilers, like Borland, don't have winresrc.h */
#ifndef NO_WINRESRC_H
#ifndef MSVC4
#include <winresrc.h>
#else
#include <winres.h>
#endif
#endif
#endif /* end #ifdef __LCC__ */
/* Some systems don't define this, so I do it myself if necessary */
#ifndef TCS_MULTILINE
#define TCS_MULTILINE 0x0200
#endif
/* Likewise */
#ifndef RT_MANIFEST
#define RT_MANIFEST 24
#endif
#ifdef MINGW32_FIX
#define EDITTEXT EDITTEXT "",
#endif
#endif /* PUTTY_RCSTUFF_H */

View File

@ -1,32 +1,8 @@
/* Some compilers, like Borland, don't have winresrc.h */
#ifdef __LCC__
#include <win.h>
#else
#ifndef NO_WINRESRC_H
#ifndef MSVC4
#include <winresrc.h>
#else
#include <winres.h>
#endif
#endif
#endif /* end #ifdef __LCC__ */
/* Some systems don't define this, so I do it myself if necessary */
#ifndef TCS_MULTILINE
#define TCS_MULTILINE 0x0200
#endif
/* Likewise */
#ifndef RT_MANIFEST
#define RT_MANIFEST 24
#endif
#ifdef MINGW32_FIX
#define EDITTEXT EDITTEXT "",
#endif
/*
* Windows resources for PuTTY and PuTTYtel.
*/
#include "rcstuff.h"
#include "win_res.h"
IDI_MAINICON ICON "putty.ico"